diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-04 11:01:59 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-04 11:01:59 -0300 |
commit | f457415f7ae8ff3cfd86dc5f629117c78fe56c3c (patch) | |
tree | e6b723c38598285c8e74cb31471c67947f3ef6d4 /qt-ui/diveplanner.h | |
parent | ae08a81739eacb0be86811274ecf9ec786626d1b (diff) | |
download | subsurface-f457415f7ae8ff3cfd86dc5f629117c78fe56c3c.tar.gz |
Make possible to 'select' an handler by ctrl+click
Make possible to select an handler by ctrl+click on it,
this will be used in the future for the shortcut actions,
like delete, arrow keys, and such.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 547e38727..9c8a2b7a6 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -28,6 +28,9 @@ public: QGraphicsLineItem *to; int sec; int mm; +protected: + void mousePressEvent(QGraphicsSceneMouseEvent* event); + }; class Ruler : public QGraphicsLineItem{ |