aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-11 12:05:33 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-11 12:37:09 -0800
commit92bbed3304afeb8e7ef6593f48eae982d799b5f1 (patch)
treedd01d95c47549aa839f615d51857b4d88a23ef4c /qt-ui/profile/divecartesianaxis.h
parentccb1c33d02b17d72036ed3cfccf565a969774aad (diff)
downloadsubsurface-92bbed3304afeb8e7ef6593f48eae982d799b5f1.tar.gz
Take the on-canvas position into account for DiveCartesianAxis::valueAt()
We did this right for posAtValue(), but not for the inverse. Fixes #438 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r--qt-ui/profile/divecartesianaxis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index fe34e3c62..2327a328f 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -29,7 +29,7 @@ public:
double maximum() const;
double tickInterval() const;
double tickSize() const;
- qreal valueAt(const QPointF& p);
+ qreal valueAt(const QPointF& p) const;
qreal percentAt(const QPointF& p);
qreal posAtValue(qreal value);
void setColor(const QColor& color);