mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: turn static into member variable
When the settings change, the depth axis is redrawn to reflect metric/imperial units. To check whether the units changed, the old length unit is saved in a static variable. This makes no sense and allows for only one depth axis. Make this a normal member variable that is initialized in the constructor. Also remove the settingsChanged() call in the constructor, since this is a no-op (the depth unit is unchanged). Contains a whitespace fix. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9c0b6436fd
commit
e61466e178
2 changed files with 4 additions and 4 deletions
|
@ -84,6 +84,7 @@ public:
|
|||
private:
|
||||
QString textForValue(double value) const override;
|
||||
QColor colorForValue(double value) const override;
|
||||
int unitSystem;
|
||||
private
|
||||
slots:
|
||||
void settingsChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue