From 512a2e6b684e237c5e6aacd3cba42fb7d2093e0a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 28 Jan 2019 21:42:59 +0100 Subject: Undo: implement undo of suit editing This one was trivially modelled after notes editing. Only difference: the textChanged() signal was replaced by the editingFinished() signal so that we're not generating undo-commands on every key-press. Signed-off-by: Berthold Stoeger --- desktop-widgets/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/command.h') diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h index e1139bd99..d31098a4b 100644 --- a/desktop-widgets/command.h +++ b/desktop-widgets/command.h @@ -53,6 +53,7 @@ void purgeUnusedDiveSites(); // 4) Dive editing related commands void editNotes(const QVector dives, const QString &newValue, const QString &oldValue); +void editSuit(const QVector dives, const QString &newValue, const QString &oldValue); void editMode(const QVector dives, int index, int newValue, int oldValue); } // namespace Command -- cgit v1.2.3-70-g09d2