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.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop-widgets/command.cpp') diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp index 7eff9a4c1..7f18b343c 100644 --- a/desktop-widgets/command.cpp +++ b/desktop-widgets/command.cpp @@ -140,4 +140,9 @@ void editMode(const QVector dives, int index, int newValue, int oldValue execute(new EditMode(dives, index, newValue, oldValue)); } +void editSuit(const QVector dives, const QString &newValue, const QString &oldValue) +{ + execute(new EditSuit(dives, newValue, oldValue)); +} + } // namespace Command -- cgit v1.2.3-70-g09d2