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);