summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-17 15:34:15 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 14:04:47 -0800
commit4ff73cf5370a3233a4caf29ded6e738e3d02b3a0 (patch)
tree24766d2a532522a7f1a0d94ac7ae471c1b244cc1 /qt-ui/profile/diveprofileitem.h
parent779c1b6738c4378be79a46b744da2c556380ca32 (diff)
downloadsubsurface-4ff73cf5370a3233a4caf29ded6e738e3d02b3a0.tar.gz
Add the gas pressure plot.
Added the Gas Pressure Graph with the related Model Changes to access the cylinder index, pressure, interpolated pressure and SAC. The plot does not correctly plot its color right now but it's not hard to do. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 9d2893a65..ddecef947 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -59,4 +59,12 @@ public:
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
};
+class DiveGasPressureItem : public AbstractProfilePolygonItem{
+ Q_OBJECT
+public:
+ virtual void modelDataChanged();
+ virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
+private:
+ QVector<QPolygonF> polygons;
+};
#endif \ No newline at end of file