diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-03-25 11:15:13 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-28 11:17:03 -0700 |
commit | 5a235aea12681796a59ce5c001707c4c7ed206df (patch) | |
tree | 9f0c991ac6e1565e5a7da186a9b2f8c469aa8341 /profile-widget/diveprofileitem.h | |
parent | bb31c77597f28976eb4784318fa7b01a28f3942b (diff) | |
download | subsurface-5a235aea12681796a59ce5c001707c4c7ed206df.tar.gz |
minimal pO2 threshold: color the p02 graph also for minumum
Color the p02 graph also in red for going under the minumum p02 value as
set in the Preferences.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'profile-widget/diveprofileitem.h')
-rw-r--r-- | profile-widget/diveprofileitem.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h index a42de0442..a8e724c3f 100644 --- a/profile-widget/diveprofileitem.h +++ b/profile-widget/diveprofileitem.h @@ -215,13 +215,14 @@ public: PartialPressureGasItem(); virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex()); - void setThreshouldSettingsKey(double *prefPointer); + void setThreshouldSettingsKey(double *prefPointerMin, double *prefPointerMax); void setVisibilitySettingsKey(const QString &setVisibilitySettingsKey); void setColors(const QColor &normalColor, const QColor &alertColor); private: QVector<QPolygonF> alertPolygons; - double *thresholdPtr; + double *thresholdPtrMin; + double *thresholdPtrMax; QString visibilityKey; QColor normalColor; QColor alertColor; |