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 --- core/subsurface-qt/divelistnotifier.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/subsurface-qt/divelistnotifier.h') diff --git a/core/subsurface-qt/divelistnotifier.h b/core/subsurface-qt/divelistnotifier.h index b5f8106d5..0e85d6f26 100644 --- a/core/subsurface-qt/divelistnotifier.h +++ b/core/subsurface-qt/divelistnotifier.h @@ -116,6 +116,9 @@ signals: // Event-related signals. Currently, we're very blunt: only one signal for any changes to the events. void eventsChanged(dive *d); + // Picture (media) related signals + void pictureOffsetChanged(dive *d, QString filename, offset_t offset); + // This signal is emited every time a command is executed. // This is used to hide an old multi-dives-edited warning message. // This is necessary, so that the user can't click on the "undo" button and undo -- cgit v1.2.3-70-g09d2