]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/decodermenu.cpp
Replace deprecated qVariantFromValue
[pulseview.git] / pv / widgets / decodermenu.cpp
index 505a1f67e9e4179c756f2ae33f148cf793686738..34f4852c9edf4f0381fe661efe273b6debe2685e 100644 (file)
@@ -51,7 +51,7 @@ DecoderMenu::DecoderMenu(QWidget *parent, const char* input, bool first_level_de
                }
 
                QAction *const action = addAction(QString::fromUtf8(d->name));
-               action->setData(qVariantFromValue(l->data));
+               action->setData(QVariant::fromValue(l->data));
                mapper_.setMapping(action, action);
                connect(action, SIGNAL(triggered()), &mapper_, SLOT(map()));
        }