From 42cfd3f9638a5f9d37e51285e6d1eaaad3e78501 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 28 Jan 2019 22:35:07 +0100 Subject: Undo: implement undo of rating and visibility rating This was rather trivial and modeled after the previous edit UndoCommands. Since this is the first time we're editing integers a new constructor instantiation had to be added. Signed-off-by: Berthold Stoeger --- desktop-widgets/command.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop-widgets/command.h') diff --git a/desktop-widgets/command.h b/desktop-widgets/command.h index d31098a4b..bc3e36cae 100644 --- a/desktop-widgets/command.h +++ b/desktop-widgets/command.h @@ -55,6 +55,8 @@ void purgeUnusedDiveSites(); 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); +void editRating(const QVector dives, int newValue, int oldValue); +void editVisibility(const QVector dives, int newValue, int oldValue); } // namespace Command -- cgit v1.2.3-70-g09d2