X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fmarginwidget.hpp;h=bedf8a92bea06051e69eea31d19d11a840894b10;hb=20c99cfc69d3c7430817abd9a1f810698deb4a18;hp=9a0686aa4c93e1ffd4448411ee2b035c7330a742;hpb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;p=pulseview.git diff --git a/pv/views/trace/marginwidget.hpp b/pv/views/trace/marginwidget.hpp index 9a0686aa..bedf8a92 100644 --- a/pv/views/trace/marginwidget.hpp +++ b/pv/views/trace/marginwidget.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_MARGINWIDGET_HPP -#define PULSEVIEW_PV_MARGINWIDGET_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_MARGINWIDGET_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_MARGINWIDGET_HPP #include @@ -61,14 +61,16 @@ protected: */ void show_popup(const shared_ptr &item); -protected: +protected Q_SLOTS: virtual void contextMenuEvent(QContextMenuEvent *event); virtual void keyPressEvent(QKeyEvent *event); + + virtual void on_popup_closed(); }; } // namespace trace } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_MARGINWIDGET_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_MARGINWIDGET_HPP