From c4c3e62ab0b3abed940ca16009b47b3dab61f068 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 2 Mar 2020 21:48:53 +0100 Subject: 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 --- profile-widget/profilewidget2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/profilewidget2.h') 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; -- cgit v1.2.3-70-g09d2