diff options
author | Krzysztof Arentowicz <karent.bug@gmail.com> | 2015-01-02 00:28:38 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-01 16:23:22 -0800 |
commit | e3378e299a64e4aa807858b49bf5794a2a5babe7 (patch) | |
tree | 3505cbb39efd9b706af3e35220653bffd0aeaa2a /qt-ui/profile/diveprofileitem.h | |
parent | ee1ef5233036be26ab28228465985f1cf71ba157 (diff) | |
download | subsurface-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.h | 12 |
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: |