diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-23 17:54:34 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-23 21:11:15 -0800 |
commit | caa45a15396a737ecbef1161e302735b148cc236 (patch) | |
tree | 0a019ed7f5ba0438b36b4268fc2c73d31c7caaee /qt-ui/profile/diveprofileitem.h | |
parent | fd45e646dcee98978b85d4776dfbec2eb1587076 (diff) | |
download | subsurface-caa45a15396a737ecbef1161e302735b148cc236.tar.gz |
Added the first Partial Gas Pressure: PN2
This makes the beginning of the partial gas pressures, there's
two more. but this code uses a good part of the Model View system,
and it's way clearer than the old one. Luckly the other 2
missing items will be even more clear ( the diffs ) to do,
because I just need to create a new PartialPressureGasItem and
set the properties. <3
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h index c6c5b19e3..8da9acee1 100644 --- a/qt-ui/profile/diveprofileitem.h +++ b/qt-ui/profile/diveprofileitem.h @@ -121,4 +121,17 @@ private: DiveTextItem *leftText; DiveTextItem *rightText; }; + +class PartialPressureGasItem : public AbstractProfilePolygonItem{ + Q_OBJECT +public: + PartialPressureGasItem(); + virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + virtual void modelDataChanged(); + virtual void preferencesChanged(); + void setThreshouldSettingsKey(const QString& threshouldSettingsKey); +private: + QPolygonF alertPoly; + QString threshouldKey; +}; #endif |