summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-04 11:01:59 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-04 11:01:59 -0300
commitf457415f7ae8ff3cfd86dc5f629117c78fe56c3c (patch)
treee6b723c38598285c8e74cb31471c67947f3ef6d4 /qt-ui/diveplanner.h
parentae08a81739eacb0be86811274ecf9ec786626d1b (diff)
downloadsubsurface-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.h3
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{