]> sigrok.org Git - pulseview.git/commitdiff
ViewItem: Make a create_popup optional
authorJoel Holdsworth <redacted>
Mon, 27 Jul 2015 02:52:46 +0000 (20:52 -0600)
committerJoel Holdsworth <redacted>
Sat, 17 Oct 2015 15:20:21 +0000 (09:20 -0600)
pv/view/viewitem.cpp
pv/view/viewitem.hpp

index a9c9b3dd8095673a8ef73717e965a2c4163ef13b..662c15de0a46d46392fc97ff6145488c85910533 100644 (file)
@@ -76,6 +76,12 @@ QMenu* ViewItem::create_context_menu(QWidget *parent)
        return new QMenu(parent);
 }
 
+widgets::Popup* ViewItem::create_popup(QWidget *parent)
+{
+       (void)parent;
+       return nullptr;
+}
+
 void ViewItem::delete_pressed()
 {
 }
index ee77c4ae5610ef915578eac82de0e13e7ae95723..5b80c4e86efdb8fe3e9a95320bcd3aa232cd65a4 100644 (file)
@@ -149,7 +149,7 @@ public:
 public:
        virtual QMenu* create_context_menu(QWidget *parent);
 
-       virtual pv::widgets::Popup* create_popup(QWidget *parent) = 0;
+       virtual pv::widgets::Popup* create_popup(QWidget *parent);
 
        virtual void delete_pressed();