From 82ac9ef9c6062f06494a3725061ab7ae99c31e88 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 19 Nov 2013 20:42:05 -0200 Subject: Enable gas selection through a context menu This patch re-enables gas selection through in the add dive profile. Good thing ( and I really didn't think of that before ) is that it is less than half of the code of the other implementation. :D Fixes #265 Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/diveplanner.h') diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index dc050a04b..c7ebe4a3a 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -117,8 +117,11 @@ public: protected: void mousePressEvent(QGraphicsSceneMouseEvent* event); void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +private: + int parentIndex(); public slots: void selfRemove(); + void changeGas(); }; class Ruler : public QGraphicsLineItem{ -- cgit v1.2.3-70-g09d2