diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-20 13:56:28 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-20 13:56:28 -0300 |
commit | 46483a096f98b3dc7186bb6971d6e5009cfb2b13 (patch) | |
tree | 98255ac12b64887c39a37486b7631c6ad6ff876f /qt-ui/diveplanner.h | |
parent | 88e7aa36be99d9ae985a374a23d84d8e0f969b5a (diff) | |
download | subsurface-46483a096f98b3dc7186bb6971d6e5009cfb2b13.tar.gz |
Better defaults for placement of dive stops.
This patch makes it impossible to create a dive stop
outside of the scene - this, messing the complete
planning system.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index e66b50d57..7dca3bb85 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -15,6 +15,8 @@ protected: virtual void mouseMoveEvent(QMouseEvent* event); void clear_generated_deco(); void create_deco_stop(); + bool isPointOutOfBoundaries(QPointF point); + private: DivePlanner(QWidget* parent = 0); QList<QGraphicsLineItem*> lines; |