summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.cpp
diff options
context:
space:
mode:
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));
- }
- }
-}