From 45ee3544d10aa5c85cb5a01998d9f92288af745e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 4 Jan 2021 00:17:31 +0100 Subject: [PATCH] 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 --- profile-widget/diveprofileitem.cpp | 7 ------- profile-widget/diveprofileitem.h | 1 - 2 files changed, 8 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) diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h index da6217170..016d650a2 100644 --- a/profile-widget/diveprofileitem.h +++ b/profile-widget/diveprofileitem.h @@ -68,7 +68,6 @@ public: DiveProfileItem(const DivePlotDataModel &model, const DiveCartesianAxis &hAxis, int hColumn, const DiveCartesianAxis &vAxis, int vColumn); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) override; void replot() override; - void settingsToggled(bool toggled); void plot_depth_sample(struct plot_data *entry, QFlags flags, const QColor &color); int maxCeiling(int row);