From: Joel Holdsworth Date: Mon, 27 Jul 2015 02:52:46 +0000 (-0600) Subject: ViewItem: Make a create_popup optional X-Git-Tag: pulseview-0.3.0~97 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0f2f14a4307b1c5952e3cb683e5049ae33c0da1b;p=pulseview.git ViewItem: Make a create_popup optional --- diff --git a/pv/view/viewitem.cpp b/pv/view/viewitem.cpp index a9c9b3dd..662c15de 100644 --- a/pv/view/viewitem.cpp +++ b/pv/view/viewitem.cpp @@ -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() { } diff --git a/pv/view/viewitem.hpp b/pv/view/viewitem.hpp index ee77c4ae..5b80c4e8 100644 --- a/pv/view/viewitem.hpp +++ b/pv/view/viewitem.hpp @@ -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();