Commit 1a8b58e5 authored by Bryant Mairs's avatar Bryant Mairs

qVariantValue no longer exists, .value<T>() replaces it.

parent 3f5ba935
...@@ -899,7 +899,7 @@ void MainWindow::addToCentralStackedWidget(QWidget* widget, VIEW_SECTIONS viewSe ...@@ -899,7 +899,7 @@ void MainWindow::addToCentralStackedWidget(QWidget* widget, VIEW_SECTIONS viewSe
void MainWindow::showCentralWidget() void MainWindow::showCentralWidget()
{ {
QAction* act = qobject_cast<QAction *>(sender()); QAction* act = qobject_cast<QAction *>(sender());
QWidget* widget = qVariantValue<QWidget *>(act->data()); QWidget* widget = act->data().value<QWidget *>();
centerStack->setCurrentWidget(widget); centerStack->setCurrentWidget(widget);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment