mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
512a2e6b68
commit
42cfd3f963
5 changed files with 86 additions and 16 deletions
|
@ -145,4 +145,14 @@ void editSuit(const QVector<dive *> dives, const QString &newValue, const QStrin
|
|||
execute(new EditSuit(dives, newValue, oldValue));
|
||||
}
|
||||
|
||||
void editRating(const QVector<dive *> dives, int newValue, int oldValue)
|
||||
{
|
||||
execute(new EditRating(dives, newValue, oldValue));
|
||||
}
|
||||
|
||||
void editVisibility(const QVector<dive *> dives, int newValue, int oldValue)
|
||||
{
|
||||
execute(new EditVisibility(dives, newValue, oldValue));
|
||||
}
|
||||
|
||||
} // namespace Command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue