diff options
author | Cristine Guadelupe <cristineguadelupe@me.com> | 2015-01-13 02:03:49 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-14 12:24:57 +1300 |
commit | 2b193416090f3ca9795513d94028557c96aed0b4 (patch) | |
tree | 7cda9150c7dd51f1e6aee5afbef1f6b246e4baae /qt-ui/profile/diveprofileitem.cpp | |
parent | c9535b6547c60afdb89db0822608cd7a44b3f50e (diff) | |
download | subsurface-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.cpp | 20 |
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)); - } - } -} |