summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-01 09:22:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-01 09:22:07 -0700
commit89e7cae8549c801660b08c2b070e00ff77d562b6 (patch)
tree8ae0fc59c548ea0e9d1b212dbab344f0fb78b0e9 /qt-ui/profile/diveprofileitem.h
parentf0cee72444b2433d140b54c2b236aafc21932a8f (diff)
downloadsubsurface-89e7cae8549c801660b08c2b070e00ff77d562b6.tar.gz
Fix partial pressure graph thresholds
Since we only store things in the preferences if they are different from the default, the existing code that simply compared with the settings value didn't work when people used the defaults. We now compare to the actual preference at runtime which should address that. Fixes #731 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r--qt-ui/profile/diveprofileitem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h
index 86e90224a..1bdf4b368 100644
--- a/qt-ui/profile/diveprofileitem.h
+++ b/qt-ui/profile/diveprofileitem.h
@@ -211,13 +211,13 @@ public:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
virtual void modelDataChanged(const QModelIndex &topLeft = QModelIndex(), const QModelIndex &bottomRight = QModelIndex());
virtual void settingsChanged();
- void setThreshouldSettingsKey(const QString &threshouldSettingsKey);
+ void setThreshouldSettingsKey(double *prefPointer);
void setVisibilitySettingsKey(const QString &setVisibilitySettingsKey);
void setColors(const QColor &normalColor, const QColor &alertColor);
private:
QVector<QPolygonF> alertPolygons;
- QString threshouldKey;
+ double *thresholdPtr;
QString visibilityKey;
QColor normalColor;
QColor alertColor;