projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MarginWidget: Moved in keyPressEvent
[pulseview.git]
/
pv
/
view
/
marginwidget.hpp
diff --git
a/pv/view/marginwidget.hpp
b/pv/view/marginwidget.hpp
index b8bcdd77744f2e7676cdbb3a25d1eff9e321c852..1194696548e4cd57def831bb05e59efb69daeabf 100644
(file)
--- a/
pv/view/marginwidget.hpp
+++ b/
pv/view/marginwidget.hpp
@@
-67,11
+67,23
@@
protected:
*/
void show_popup(const std::shared_ptr<ViewItem> &item);
*/
void show_popup(const std::shared_ptr<ViewItem> &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);
void leaveEvent(QEvent *event);
+ virtual void contextMenuEvent(QContextMenuEvent *event);
+
+ virtual void keyPressEvent(QKeyEvent *e);
+
public Q_SLOTS:
public Q_SLOTS:
- v
irtual v
oid clear_selection();
+ void clear_selection();
Q_SIGNALS:
void selection_changed();
Q_SIGNALS:
void selection_changed();