summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 57b1e70e8..272ee0821 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -4,6 +4,8 @@
#include <QObject>
#include <QGraphicsPolygonItem>
#include "graphicsview-common.h"
+#include "divelineitem.h"
+
/* This is the Profile Item, it should be used for quite a lot of things
on the profile view. The usage should be pretty simple:
@@ -100,4 +102,16 @@ public:
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
virtual void preferencesChanged();
};
-#endif \ No newline at end of file
+
+class MeanDepthLine : public DiveLineItem {
+ Q_OBJECT
+public:
+ MeanDepthLine();
+ void setMeanDepth(int value);
+ void setLine(qreal x1, qreal y1, qreal x2, qreal y2);
+private:
+ int meanDepth;
+ DiveTextItem *leftText;
+ DiveTextItem *rightText;
+};
+#endif