diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-12 14:41:59 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-12 10:33:14 -0800 |
commit | cc37d2e94ae34b8f260a1426e49c0ca082226502 (patch) | |
tree | 3d8e4887caf34d5cc5a3b95819047a5a17a4cc44 /qt-ui/profile/profilewidget2.cpp | |
parent | 0333de426ff0d581a3e4534f3999daf17349c4b5 (diff) | |
download | subsurface-cc37d2e94ae34b8f260a1426e49c0ca082226502.tar.gz |
Make the mean depth line follow the size of the axis.
When we move, shrink or expand the depth axis, the
meandepth should also change it's position. this
patch adds that.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index ccbc4f6a1..cfe8e7f82 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -145,6 +145,7 @@ void ProfileWidget2::setupItemOnScene() meanDepth->setX(3); meanDepth->setPen(QPen(QBrush(Qt::red), 0, Qt::SolidLine)); meanDepth->setZValue(1); + meanDepth->setAxis(profileYAxis); cartesianPlane->setBottomAxis(timeAxis); cartesianPlane->setLeftAxis(profileYAxis); |