diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-20 12:37:41 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-20 12:37:41 -0300 |
commit | 0d45c775725f23e96b018df4e23c2776a3186030 (patch) | |
tree | 693806b60639ee61d71d2819dd7282055003023c /qt-ui/diveplanner.h | |
parent | beadeffaf51f59a5d587861121f371c14d5dcaff (diff) | |
download | subsurface-0d45c775725f23e96b018df4e23c2776a3186030.tar.gz |
Make double click work to put new items on the canvas.
Make double click work to put new items on the canvas.
Those items right now are QGraphicsEllipseItems, but
it will change to 'draggable' items.
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 9a7d0859f..6e73db718 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -8,6 +8,9 @@ class DivePlanner : public QGraphicsView { Q_OBJECT public: static DivePlanner *instance(); +protected: + virtual void mouseDoubleClickEvent(QMouseEvent* event); + private: DivePlanner(QWidget* parent = 0); }; |