summaryrefslogtreecommitdiffstats
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.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index 8b7269c35..a12175461 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -183,3 +183,8 @@ QString DepthAxis::textForValue(double value)
{
return get_depth_string(value, false, false);
}
+
+QString TimeAxis::textForValue(double value)
+{
+ return QString::number(value / 60);
+} \ No newline at end of file
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index 9b5da4747..d6a60d3ce 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -48,4 +48,8 @@ protected:
QString textForValue(double value);
};
+class TimeAxis : public DiveCartesianAxis {
+protected:
+ QString textForValue(double value);
+};
#endif \ No newline at end of file