mirror of https://github.com/CGAL/cgal
Use QVaraitn::fromValue()
This commit is contained in:
parent
2bb22ad954
commit
3debd4813e
|
|
@ -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()));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue