mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f0cee72444
commit
89e7cae854
3 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue