diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-22 22:32:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 72427adc1c063ae5de08f4d92dc79824f6227614 (patch) | |
tree | cfb359483a8adab275d2e948429ec13d8ebcb691 /profile-widget/profilewidget2.cpp | |
parent | fccbed3ca9f6f3aa761fea1f4d2a0dfbf8a4c125 (diff) | |
download | subsurface-72427adc1c063ae5de08f4d92dc79824f6227614.tar.gz |
profile: remove AbstractProfilePolygonItem::settingsChanged()
settingsChanged() is a virtual function, which is called
when the preferences dialog signals changes. In most derived
classes, the function does nothing.
In two classes, DiveProfileItem and DiveCalculatedTissue, it
replots the item respectively changes its visibility.
However, these two flags are *not* controlled by the preferences
dialog. Indeed, the functions are also connected to finer-grained
qPref signals. Therefore, settingsChanged() can be removed.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index cf9e3e997..05a1fcff1 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -375,7 +375,6 @@ PartialPressureGasItem *ProfileWidget2::createPPGas(int column, color_index_t co PartialPressureGasItem *item = createItem<PartialPressureGasItem>(*gasYAxis, column, 99); item->setThresholdSettingsKey(thresholdSettingsMin, thresholdSettingsMax); item->setColors(getColor(color, isGrayscale), getColor(colorAlert, isGrayscale)); - item->settingsChanged(); return item; } |