diff options
author | Krzysztof Arentowicz <karent.bug@gmail.com> | 2015-01-02 00:29:50 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-01 16:28:20 -0800 |
commit | b6f47883c3bd3c05f1f5ef4d933a7b138d30b313 (patch) | |
tree | efc81663bbf529ca4f07a22e2c5765a59b4a6abb /qt-ui/profile/profilewidget2.cpp | |
parent | e3378e299a64e4aa807858b49bf5794a2a5babe7 (diff) | |
download | subsurface-b6f47883c3bd3c05f1f5ef4d933a7b138d30b313.tar.gz |
Get rid of mean depth line
Flat mean depth line (whole dive, not the instant one) is redundant as we now
have a much more useful mean depth graph.
Signed-off-by: Krzysztof Arentowicz <k.arentowicz@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index df76058c8..4fafef075 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -86,7 +86,6 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent), temperatureItem(new DiveTemperatureItem()), cylinderPressureAxis(new DiveCartesianAxis()), gasPressureItem(new DiveGasPressureItem()), - meanDepth(new MeanDepthLine()), meanDepthItem(new DiveMeanDepthItem()), diveComputerText(new DiveTextItem()), diveCeiling(new DiveCalculatedCeiling()), @@ -157,7 +156,6 @@ ProfileWidget2::~ProfileWidget2() delete meanDepthItem; delete cylinderPressureAxis; delete gasPressureItem; - delete meanDepth; delete diveComputerText; delete diveCeiling; delete reportedCeiling; @@ -192,7 +190,6 @@ void ProfileWidget2::addItemsToScene() scene()->addItem(temperatureItem); scene()->addItem(meanDepthItem); scene()->addItem(gasPressureItem); - scene()->addItem(meanDepth); // I cannot seem to figure out if an object that I find with itemAt() on the scene // is the object I am looking for - my guess is there's a simple way in Qt to do that // but nothing I tried worked. @@ -273,11 +270,6 @@ void ProfileWidget2::setupItemOnScene() cylinderPressureAxis->setTickSize(2); cylinderPressureAxis->setTickInterval(30000); - meanDepth->setLine(0, 0, 96, 0); - meanDepth->setX(3); - meanDepth->setPen(QPen(QBrush(Qt::red), 0, Qt::SolidLine)); - meanDepth->setZValue(1); - meanDepth->setAxis(profileYAxis); instantMeanDepth->setLine(0, 0, 96, 0); instantMeanDepth->setX(3); @@ -607,10 +599,6 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) rulerItem->setPlotInfo(plotInfo); tankItem->setData(dataModel, &plotInfo, &displayed_dive); - meanDepth->setVisible(prefs.show_average_depth); - meanDepth->setMeanDepth(plotInfo.meandepth); - meanDepth->setLine(0, 0, timeAxis->posAtValue(currentdc->duration.seconds), 0); - Animations::moveTo(meanDepth,3, profileYAxis->posAtValue(plotInfo.meandepth)); instantMeanDepth->vAxis = profileYAxis; instantMeanDepth->hAxis = timeAxis; @@ -894,7 +882,6 @@ void ProfileWidget2::setEmptyState() temperatureAxis->setVisible(false); cylinderPressureAxis->setVisible(false); toolTipItem->setVisible(false); - meanDepth->setVisible(false); diveComputerText->setVisible(false); diveCeiling->setVisible(false); reportedCeiling->setVisible(false); @@ -1007,7 +994,6 @@ void ProfileWidget2::setProfileState() cylinderPressureAxis->setPos(itemPos.cylinder.pos.on); heartBeatItem->setVisible(prefs.hrgraph); - meanDepth->setVisible(true); meanDepthItem->setVisible(prefs.show_average_depth); diveComputerText->setVisible(true); |