aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-25 07:40:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-12 15:52:40 -0800
commit674c20227b2ced3bfd9b3ab29060e7a2dd5829c3 (patch)
treee734d86c09becf4f503f4c5089ca5405f7ef479f /profile-widget/profilewidget2.h
parentbb76cb56d42e957e03cc705a9f8fd9f637733b5d (diff)
downloadsubsurface-674c20227b2ced3bfd9b3ab29060e7a2dd5829c3.tar.gz
profile: call clearHandlers() in setPlanState()
This function, which removes the handlers from the profile, was called in setAddState() but not in setPlanState(). In the latter case it was called explicitly by the caller. Move the call from the caller into the function. This allows us to make clearHandlers() private in to the profile widget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.h')
-rw-r--r--profile-widget/profilewidget2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index e6f06a7b2..26552e578 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -87,7 +87,6 @@ public:
void setFontPrintScale(double scale);
#ifndef SUBSURFACE_MOBILE
bool eventFilter(QObject *, QEvent *) override;
- void clearHandlers();
#endif
void setToolTipVisibile(bool visible);
State currentState;
@@ -164,6 +163,9 @@ private:
void createPPGas(PartialPressureGasItem *item, int verticalColumn, color_index_t color, color_index_t colorAlert,
const double *thresholdSettingsMin, const double *thresholdSettingsMax);
void clearPictures();
+#ifndef SUBSURFACE_MOBILE
+ void clearHandlers();
+#endif
void plotPicturesInternal(const struct dive *d, bool synchronous);
void addDivemodeSwitch(int seconds, int divemode);
void addBookmark(int seconds);