summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-16 10:57:11 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-16 10:57:11 -0800
commit582fb693a043ef861cbaeaf8a69936dc0680f070 (patch)
tree8e6d833b940365fcf96de1c0398065aec41cccbd /qt-ui/profile/profilewidget2.cpp
parente0f8ec7144f2a952f003b8ad19aaa26d58537f4e (diff)
downloadsubsurface-582fb693a043ef861cbaeaf8a69936dc0680f070.tar.gz
New profile: improve mean depth line
Show decimal depth and make the line length more appropriate for the dive profile shown. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp1
1 files changed, 1 insertions, 0 deletions
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();