Use QVaraitn::fromValue()

This commit is contained in:
Maxime Gimeno 2020-01-09 09:55:26 +01:00
parent 2bb22ad954
commit 3debd4813e
1 changed files with 2 additions and 2 deletions

View File

@ -1399,11 +1399,11 @@ void MainWindow::showSceneContextMenu(int selectedItemIndex,
this, SLOT(reloadItem()));
}
QAction* saveas = menu->addAction(tr("&Save as..."));
saveas->setData(qVariantFromValue((void*)item));
saveas->setData(QVariant::fromValue((void*)item));
connect(saveas, SIGNAL(triggered()),
this, SLOT(on_actionSaveAs_triggered()));
QAction* showobject = menu->addAction(tr("&Zoom to this Object"));
showobject->setData(qVariantFromValue((void*)item));
showobject->setData(QVariant::fromValue((void*)item));
connect(showobject, SIGNAL(triggered()),
this, SLOT(viewerShowObject()));