diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-23 15:28:31 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-23 15:28:31 -0800 |
commit | b5a02e50aa94c10d2c9f2062af6b4e8d9cfb9294 (patch) | |
tree | bbb1b714255c8c66fd9bf9d4d05d7f2d8f1c9d24 /qt-ui/profile/diveprofileitem.h | |
parent | 76393a2f536dd6823b08ec3a53ffcb16b216bbf4 (diff) | |
download | subsurface-b5a02e50aa94c10d2c9f2062af6b4e8d9cfb9294.tar.gz |
New profile: create new class for DiveHeartrateItem
This allows us to give it a different color (red) and make it a smaller
size.
While implementing this I also fixed the size of the temperature text in
the new profile.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r-- | qt-ui/profile/diveprofileitem.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h index e8bac0421..86ea01c64 100644 --- a/qt-ui/profile/diveprofileitem.h +++ b/qt-ui/profile/diveprofileitem.h @@ -88,6 +88,16 @@ private: void createTextItem(int seconds, int mkelvin); }; +class DiveHeartrateItem : public AbstractProfilePolygonItem { + Q_OBJECT +public: + DiveHeartrateItem(); + virtual void modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); + virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); +private: + void createTextItem(int seconds, int hr); +}; + class DiveGasPressureItem : public AbstractProfilePolygonItem{ Q_OBJECT |