]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/exportmenu.cpp
Replace deprecated qVariantFromValue
[pulseview.git] / pv / widgets / exportmenu.cpp
index 13c977d50cda7cedc8f72dd19f9e2599ca2cc56f..f5189d129fe02ad422750bb68233c18f38ca0f34 100644 (file)
@@ -70,7 +70,7 @@ ExportMenu::ExportMenu(QWidget *parent, shared_ptr<Context> context,
                assert(f.second);
                QAction *const action = addAction(tr("Export %1...")
                        .arg(QString::fromStdString(f.second->description())));
-               action->setData(qVariantFromValue((void*)f.second.get()));
+               action->setData(QVariant::fromValue((void*)f.second.get()));
                mapper_.setMapping(action, action);
                connect(action, SIGNAL(triggered()), &mapper_, SLOT(map()));
        }
@@ -95,5 +95,5 @@ void ExportMenu::on_action(QObject *action)
        format_selected((*iter).second);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv