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>
This commit is contained in:
Berthold Stoeger 2020-03-02 21:48:53 +01:00
parent dee7fd9f30
commit c4c3e62ab0
2 changed files with 6 additions and 15 deletions

View file

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