summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
authorGravatar Krzysztof Arentowicz <karent.bug@gmail.com>2015-01-02 00:28:38 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-01 16:23:22 -0800
commite3378e299a64e4aa807858b49bf5794a2a5babe7 (patch)
tree3505cbb39efd9b706af3e35220653bffd0aeaa2a /qt-ui/profile/diveprofileitem.h
parentee1ef5233036be26ab28228465985f1cf71ba157 (diff)
downloadsubsurface-e3378e299a64e4aa807858b49bf5794a2a5babe7.tar.gz
Plot mean depth data
As we already have running depth sum values for each sample why don't just plot running average depth graph. Signed-off-by: Krzysztof Arentowicz <k.arentowicz@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 49631035b..d235d22fd 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -84,6 +84,18 @@ private:
QColor profileColor;
};
+class DiveMeanDepthItem : public AbstractProfilePolygonItem {
+ Q_OBJECT
+public:
+ DiveMeanDepthItem();
+ virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex());
+ virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+ virtual void settingsChanged();
+private:
+ QString visibilityKey;
+
+};
+
class DiveTemperatureItem : public AbstractProfilePolygonItem {
Q_OBJECT
public: