aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Cristine Guadelupe <cristineguadelupe@me.com>2015-01-13 02:03:49 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-14 12:24:57 +1300
commit2b193416090f3ca9795513d94028557c96aed0b4 (patch)
tree7cda9150c7dd51f1e6aee5afbef1f6b246e4baae /qt-ui/profile/diveprofileitem.cpp
parentc9535b6547c60afdb89db0822608cd7a44b3f50e (diff)
downloadsubsurface-2b193416090f3ca9795513d94028557c96aed0b4.tar.gz
Remove instantMeanDepthLine
Take instantMeanDepthLine out of the code. We have the moving average line plus the exact data in the information overlay. Signed-off-by: Cristine Guadelupe <cristineguadelupe@me.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.cpp')
-rw-r--r--qt-ui/profile/diveprofileitem.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index 60a030bb0..7531b2acb 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -977,23 +977,3 @@ void PartialPressureGasItem::setColors(const QColor &normal, const QColor &alert
normalColor = normal;
alertColor = alert;
}
-
-InstantMeanDepthLine::InstantMeanDepthLine() : hAxis(NULL), vAxis(NULL)
-{
-}
-
-void InstantMeanDepthLine::mouseMoved(int time, int depth)
-{
- if (model == NULL || scene() == NULL || vAxis == NULL || hAxis == NULL)
- return;
-
- int count = model->data().nr;
- for (int i = 0; i < count; i++) {
- struct plot_data pI = model->data().entry[i];
- if (pI.sec == time && pI.sec != 0) {
- setMeanDepth(pI.running_sum / time);
- setLine(0, 0, hAxis->posAtValue(time), 0);
- setPos(pos().x(), vAxis->posAtValue(pI.running_sum / time));
- }
- }
-}