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