summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-19 20:42:05 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 15:41:34 -0800
commit82ac9ef9c6062f06494a3725061ab7ae99c31e88 (patch)
tree23c46eacd48bfb0176d39574b4b70580bda5b0fb /qt-ui/diveplanner.h
parent25a52056c681f956d9c23bf1116f35997bcab3d3 (diff)
downloadsubsurface-82ac9ef9c6062f06494a3725061ab7ae99c31e88.tar.gz
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.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 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{