From 8c72ac6b9b00778e03dd60fe30bf4ba53d87ab55 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 9 Apr 2021 22:19:59 +0200 Subject: profile: remove force parameter from ProfileWidget2::plotDive() The last user was removed in 2789bb05b133a7cf54081d58d4f5c51c8977e951. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 4 ++-- profile-widget/profilewidget2.h | 2 +- profile-widget/qmlprofile.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 8e71c391a..9f6158659 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -360,7 +360,7 @@ void ProfileWidget2::setupItemOnScene() void ProfileWidget2::replot() { - plotDive(d, dc, true, false); + plotDive(d, dc, false); } PartialPressureGasItem *ProfileWidget2::createPPGas(int column, color_index_t color, color_index_t colorAlert, @@ -521,7 +521,7 @@ void ProfileWidget2::resetZoom() } // Currently just one dive, but the plan is to enable All of the selected dives. -void ProfileWidget2::plotDive(const struct dive *dIn, int dcIn, bool force, bool doClearPictures, bool instant) +void ProfileWidget2::plotDive(const struct dive *dIn, int dcIn, bool doClearPictures, bool instant) { d = dIn; dc = dcIn; diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index c45bbc611..1b7fcb7c8 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -80,7 +80,7 @@ public: ~ProfileWidget2(); void resetZoom(); void scale(qreal sx, qreal sy); - void plotDive(const struct dive *d, int dc, bool force = false, bool clearPictures = false, bool instant = false); + void plotDive(const struct dive *d, int dc, bool clearPictures = false, bool instant = false); void setProfileState(const struct dive *d, int dc); void setPlanState(const struct dive *d, int dc); void setAddState(const struct dive *d, int dc); diff --git a/profile-widget/qmlprofile.cpp b/profile-widget/qmlprofile.cpp index 388b1e731..a0f68f0db 100644 --- a/profile-widget/qmlprofile.cpp +++ b/profile-widget/qmlprofile.cpp @@ -135,7 +135,7 @@ void QMLProfile::updateProfile() return; if (verbose) qDebug() << "update profile for dive #" << d->number << "offeset" << QString::number(m_xOffset, 'f', 1) << "/" << QString::number(m_yOffset, 'f', 1); - m_profileWidget->plotDive(d, dc_number, true); + m_profileWidget->plotDive(d, dc_number); } void QMLProfile::setDiveId(int diveId) @@ -189,7 +189,7 @@ void QMLProfile::divesChanged(const QVector &dives, DiveField) for (struct dive *d: dives) { if (d->id == m_diveId) { qDebug() << "dive #" << d->number << "changed, trigger profile update"; - m_profileWidget->plotDive(d, dc_number, true); + m_profileWidget->plotDive(d, dc_number); triggerUpdate(); return; } -- cgit v1.2.3-70-g09d2