diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 4 | ||||
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 20ad3992b..a16ef7dd3 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -531,8 +531,8 @@ void MeanDepthLine::setLine(qreal x1, qreal y1, qreal x2, qreal y2) void MeanDepthLine::setMeanDepth(int value) { - leftText->setText(get_depth_string(value, false, false)); - rightText->setText(get_depth_string(value, false, false)); + leftText->setText(get_depth_string(value, false, true)); + rightText->setText(get_depth_string(value, false, true)); meanDepth = value; } diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 422adabb0..b05d50084 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -347,6 +347,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives) cylinderPressureAxis->setMinimum(pInfo.minpressure); cylinderPressureAxis->setMaximum(pInfo.maxpressure); meanDepth->setMeanDepth(pInfo.meandepth); + meanDepth->setLine(0,0,timeAxis->posAtValue(d->duration.seconds),0); meanDepth->animateMoveTo(3, profileYAxis->posAtValue(pInfo.meandepth)); dataModel->emitDataChanged(); |