summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-21 16:07:44 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-21 16:07:44 -0300
commit1e4d360d0c12969477122ecf72e6a4e6686142f3 (patch)
treef49fbcc2d0bd4740b0d3ef885977ad3b52940e45 /qt-ui/diveplanner.h
parent397a94fcd1deb56240403a6e33e61f49460cc1c8 (diff)
downloadsubsurface-1e4d360d0c12969477122ecf72e6a4e6686142f3.tar.gz
Do not plot dive handlers outside of the Plane area.
This patch makes the behavior of inserting new hanflers correct. it can only be inserted now inside of the plane defined by the Depth ruler and Time ruler. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 4a28f2ec1..ce4dd6d4f 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -22,6 +22,8 @@ public:
void setTickInterval(double interval);
void setOrientation(Qt::Orientation orientation);
void updateTicks();
+ double minimum() const;
+ double maximum() const;
qreal valueAt(const QPointF& p);
qreal posAtValue(qreal value);