From 4d183e0d75a3ae5b536abb6ea254ba224d713f72 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 14 Mar 2019 00:00:54 +0100 Subject: Undo: implement undo of dive site notes editing Simply copy the code of description editing. Signed-off-by: Berthold Stoeger --- desktop-widgets/command_divesite.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'desktop-widgets/command_divesite.h') 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 -- cgit v1.2.3-70-g09d2