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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-01-28 22:35:07 +01:00 committed by Dirk Hohndel
parent 512a2e6b68
commit 42cfd3f963
5 changed files with 86 additions and 16 deletions

View file

@ -55,6 +55,8 @@ void purgeUnusedDiveSites();
void editNotes(const QVector<dive *> dives, const QString &newValue, const QString &oldValue);
void editSuit(const QVector<dive *> dives, const QString &newValue, const QString &oldValue);
void editMode(const QVector<dive *> dives, int index, int newValue, int oldValue);
void editRating(const QVector<dive *> dives, int newValue, int oldValue);
void editVisibility(const QVector<dive *> dives, int newValue, int oldValue);
} // namespace Command