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>
This commit is contained in:
Tomaz Canabrava 2014-02-12 14:41:59 -02:00 committed by Dirk Hohndel
parent 0333de426f
commit cc37d2e94a
3 changed files with 17 additions and 0 deletions

View file

@ -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);