X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.hpp;h=1194696548e4cd57def831bb05e59efb69daeabf;hp=b8bcdd77744f2e7676cdbb3a25d1eff9e321c852;hb=bb4a0e8e0b337988264e43a368b6ce5950d2d6cd;hpb=04b623e04f224748248447d8b3ced2df050a3375 diff --git a/pv/view/marginwidget.hpp b/pv/view/marginwidget.hpp index b8bcdd77..11946965 100644 --- a/pv/view/marginwidget.hpp +++ b/pv/view/marginwidget.hpp @@ -67,11 +67,23 @@ protected: */ void show_popup(const std::shared_ptr &item); -private: + /** + * Handles left mouse button press events. + * @param event the mouse event that triggered this handler. + */ + void mouse_left_press_event(QMouseEvent *event); + +protected: + void mousePressEvent(QMouseEvent * event); + void leaveEvent(QEvent *event); + virtual void contextMenuEvent(QContextMenuEvent *event); + + virtual void keyPressEvent(QKeyEvent *e); + public Q_SLOTS: - virtual void clear_selection(); + void clear_selection(); Q_SIGNALS: void selection_changed();