cleanup: use lambda to transport event-time to context menu actions

This is not such a big gain as for addDivemodeSwitch(), but still
simpler. Therefore, let's do it for consistency.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-02 22:02:33 +01:00
parent c2d98b378b
commit 83d10ce89a
2 changed files with 13 additions and 25 deletions

View file

@ -115,9 +115,6 @@ slots: // Necessary to call from QAction's signals.
void removePictures(const QVector<QString> &fileUrls);
void setPlanState();
void setAddState();
void addSetpointChange();
void splitDive();
void addBookmark();
void hideEvents();
void unhideEvents();
void removeEvent();
@ -175,6 +172,9 @@ private:
void clearPictures();
void plotPicturesInternal(const struct dive *d, bool synchronous);
void addDivemodeSwitch(int seconds, int divemode);
void addBookmark(int seconds);
void splitDive(int seconds);
void addSetpointChange(int seconds);
private:
DivePlotDataModel *dataModel;
int zoomLevel;