summaryrefslogtreecommitdiffstats
path: root/profile-widget/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-04 00:17:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit45ee3544d10aa5c85cb5a01998d9f92288af745e (patch)
treeabff2c02cc37bb0fbbbc3e72b5b2aac469153b39 /profile-widget/diveprofileitem.cpp
parent0392994df0c9cd99df946633d6e318bd0548a3b9 (diff)
downloadsubsurface-45ee3544d10aa5c85cb5a01998d9f92288af745e.tar.gz
profile: remove DiveProfileItem::settingsToggled
This was used to force a replot on preferences changes. However, the profile now does a replot in such a case by itself. This can be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
-rw-r--r--profile-widget/diveprofileitem.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index 48bd02f51..48f7dd380 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -55,13 +55,6 @@ DiveProfileItem::DiveProfileItem(const DivePlotDataModel &model, const DiveCarte
AbstractProfilePolygonItem(model, hAxis, hColumn, vAxis, vColumn),
show_reported_ceiling(0), reported_ceiling_in_red(0)
{
- connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::dcceilingChanged, this, &DiveProfileItem::settingsToggled);
- connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::redceilingChanged, this, &DiveProfileItem::settingsToggled);
-}
-
-void DiveProfileItem::settingsToggled(bool)
-{
- replot();
}
void DiveProfileItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)