mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
dee7fd9f30
commit
c4c3e62ab0
2 changed files with 6 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue