aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-12-30 21:10:21 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-30 16:12:28 -0800
commit146030f805ab80d56282996ad830e1583fa9679c (patch)
tree5f4a1e5853c5a1366f140870a20e38ee2f4831df /qt-ui/profile
parent2839aed8f282f409779f93fed2d899299f2a06d8 (diff)
downloadsubsurface-146030f805ab80d56282996ad830e1583fa9679c.tar.gz
Add skeleton for the instant mean depth line
This class will hold the visible line of the mean depth for the time 'now' Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/diveprofileitem.cpp10
-rw-r--r--qt-ui/profile/diveprofileitem.h8
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
3 files changed, 18 insertions, 2 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index e2148bf7c..d96059173 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -925,3 +925,13 @@ void PartialPressureGasItem::setColors(const QColor &normal, const QColor &alert
normalColor = normal;
alertColor = alert;
}
+
+InstantMeanDepthLine::InstantMeanDepthLine()
+{
+
+}
+
+void InstantMeanDepthLine::mouseMoved(int time, int depth)
+{
+
+}
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 1bdf4b368..7f375f110 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -204,6 +204,14 @@ private:
DiveTextItem *rightText;
};
+class InstantMeanDepthLine : public MeanDepthLine {
+ Q_OBJECT
+public:
+ InstantMeanDepthLine();
+public slots:
+ void mouseMoved(int time, int depth);
+};
+
class PartialPressureGasItem : public AbstractProfilePolygonItem {
Q_OBJECT
public:
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index d631e3cc1..ba71a9fba 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -836,8 +836,6 @@ void ProfileWidget2::mouseMoveEvent(QMouseEvent *event)
&& timeAxis->minimum() <= hValue){
mouseFollowerVertical->setPos(pos.x(), profileYAxis->line().y1());
}
-
-
}
bool ProfileWidget2::eventFilter(QObject *object, QEvent *event)