diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-14 00:00:54 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 4d183e0d75a3ae5b536abb6ea254ba224d713f72 (patch) | |
tree | 2be4630d6cb83c2930da6c9c4fd081c09b658273 /desktop-widgets/command_divesite.h | |
parent | 2bb2643ae4d4c1b6d0c32c9a18e2225eed0b5936 (diff) | |
download | subsurface-4d183e0d75a3ae5b536abb6ea254ba224d713f72.tar.gz |
Undo: implement undo of dive site notes editing
Simply copy the code of description editing.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_divesite.h')
-rw-r--r-- | desktop-widgets/command_divesite.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop-widgets/command_divesite.h b/desktop-widgets/command_divesite.h index f436a84b4..ef3b2506f 100644 --- a/desktop-widgets/command_divesite.h +++ b/desktop-widgets/command_divesite.h @@ -67,6 +67,18 @@ private: QString value; // Value to be set }; +class EditDiveSiteNotes : public Base { +public: + EditDiveSiteNotes(dive_site *ds, const QString ¬es); +private: + bool workToBeDone() override; + void undo() override; + void redo() override; + + dive_site *ds; + QString value; // Value to be set +}; + } // namespace Command #endif // COMMAND_DIVESITE_H |