diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-09-22 11:01:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-22 11:01:18 -0700 |
commit | 9ba7b12767b580ed339231ee3469f35a3588a37a (patch) | |
tree | f98449036ff145a196c7431e64a0a9d8c60c7241 /qt-ui/diveplanner.h | |
parent | 799b56a1f39fa09b3b6160465199e5dd1780df31 (diff) | |
download | subsurface-9ba7b12767b580ed339231ee3469f35a3588a37a.tar.gz |
Prevent nodes in planner / dive add profile edit to run past each other
I always disliked the fact that when you moved the handlers around you
could just 'run over' the neighbors. This also (as a somewhat intended
side effect) prevents vertical descents and ascents).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 81825c765..e9fe2051a 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -42,6 +42,7 @@ public: */ void editStop(int row, divedatapoint newData ); divedatapoint at(int row); + int size(); struct diveplan getDiveplan(); public slots: int addStop(int meters = 0, int minutes = 0,const QString& gas = QString(), int ccpoint = 0 ); |