summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-02 13:31:25 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-02 13:31:25 -0300
commiteffb7e2fac59cf2b44aa010b1ee17de24d7c6214 (patch)
tree495ba736725f44d06b3d78b9f7a088373d4896ab /qt-ui/diveplanner.h
parent23b29bd3cd0982eb921dc5cbf8f9e13074fe9e32 (diff)
downloadsubsurface-effb7e2fac59cf2b44aa010b1ee17de24d7c6214.tar.gz
Change the color of the DepthString based on it's deepness
Change the color of the DepthString based on it's deepness on the profile planner. The new color of the profileString ( the string that follows the mouse stating how deep you are) is now interpolated from SAMPLE_SHALLOW and SAMPLE_DEEP - but since those two colors were the same and I had to change it so that could work, I want somebody to check if my choose of colors were ok. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 41b4e5c89..a7459de1b 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -42,6 +42,7 @@ public:
double minimum() const;
double maximum() const;
qreal valueAt(const QPointF& p);
+ qreal percentAt(const QPointF& p);
qreal posAtValue(qreal value);
void setColor(const QColor& color);