From 0e1b0cf1da697851b0db4f8b860da8ac3a509d17 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 12 Mar 2019 23:51:39 +0100 Subject: Undo: Implement undo of dive site name editing Implement an undo command that edits the name of a dive site. Connect it to the dive site table, so that names can be edited directly in the table. Send signals on undo / redo so that the dive site table and the dive site edit widget can be updated. Signed-off-by: Berthold Stoeger --- core/subsurface-qt/DiveListNotifier.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/subsurface-qt/DiveListNotifier.h') diff --git a/core/subsurface-qt/DiveListNotifier.h b/core/subsurface-qt/DiveListNotifier.h index 41a964955..40343791f 100644 --- a/core/subsurface-qt/DiveListNotifier.h +++ b/core/subsurface-qt/DiveListNotifier.h @@ -48,6 +48,7 @@ signals: void diveSiteAdded(dive_site *ds, int idx); void diveSiteDeleted(dive_site *ds, int idx); void diveSiteDiveCountChanged(dive_site *ds); + void diveSiteChanged(dive_site *ds, int field); // field according to LocationInformationModel public: // Desktop uses the QTreeView class to present the list of dives. The layout // of this class gives us a very fundamental problem, as we can not easily -- cgit v1.2.3-70-g09d2