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>
This commit is contained in:
Tomaz Canabrava 2013-11-19 20:42:05 -02:00 committed by Dirk Hohndel
parent 25a52056c6
commit 82ac9ef9c6
2 changed files with 26 additions and 0 deletions

View file

@ -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{