aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp5
-rw-r--r--qt-ui/profile/divecartesianaxis.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index 358b85ef4..8b7269c35 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -178,3 +178,8 @@ void DiveCartesianAxis::setColor(const QColor& color)
defaultPen.setCosmetic(true);
setPen(defaultPen);
}
+
+QString DepthAxis::textForValue(double value)
+{
+ return get_depth_string(value, false, false);
+}
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index 1c8170ef4..9b5da4747 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -43,4 +43,9 @@ protected:
QColor textColor;
};
+class DepthAxis : public DiveCartesianAxis {
+protected:
+ QString textForValue(double value);
+};
+
#endif \ No newline at end of file