summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-02 21:48:53 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commitc4c3e62ab0b3abed940ca16009b47b3dab61f068 (patch)
treef23c3ea26bd6c85341ec5298459b666fdb8dd3c0 /profile-widget/profilewidget2.h
parentdee7fd9f308caae16045038b67dedd604a4d0ac2 (diff)
downloadsubsurface-c4c3e62ab0b3abed940ca16009b47b3dab61f068.tar.gz
profile: use lambda for addDivemodeSwitch calls
The data was transported via the action in a most complicated way: The text was backtranslated. Simply use a lambda - perhaps hard to read, but much simpler to follow and less brittle. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.h')
-rw-r--r--profile-widget/profilewidget2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index ebaa52696..4d47cb622 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -118,7 +118,6 @@ slots: // Necessary to call from QAction's signals.
void addSetpointChange();
void splitDive();
void addBookmark();
- void addDivemodeSwitch();
void hideEvents();
void unhideEvents();
void removeEvent();
@@ -175,6 +174,7 @@ private:
const double *thresholdSettingsMin, const double *thresholdSettingsMax);
void clearPictures();
void plotPicturesInternal(const struct dive *d, bool synchronous);
+ void addDivemodeSwitch(int seconds, int divemode);
private:
DivePlotDataModel *dataModel;
int zoomLevel;