From e61641c79cd57bfa55d2371615a7eef7c73b4eb7 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 14 Apr 2020 22:07:00 +0200 Subject: undo: implement undo of setting a picture time by drag&drop Even though the functionality is seemingly trivial, this is a bit invasive, as the code has to be split into two distinct parts: 1) Post undo command 2) React to changes to the divelist Don't compile that code on mobile. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'profile-widget/profilewidget2.h') diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 96191a1d6..039424d87 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -117,6 +117,7 @@ slots: // Necessary to call from QAction's signals. void pointsRemoved(const QModelIndex &, int start, int end); void updateThumbnail(QString filename, QImage thumbnail, duration_t duration); void profileChanged(dive *d); + void pictureOffsetChanged(dive *d, QString filename, offset_t offset); /* this is called for every move on the handlers. maybe we can speed up this a bit? */ void recreatePlannedDive(); -- cgit v1.2.3-70-g09d2