From 02d572226df82ccbdfff3c455c9e5b20a7992bc4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 7 Feb 2019 21:23:00 +0100 Subject: Undo: implement undo of divemaster editing This is mostly a trivial copy of the buddies code. Signed-off-by: Berthold Stoeger --- desktop-widgets/command_edit.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'desktop-widgets/command_edit.h') diff --git a/desktop-widgets/command_edit.h b/desktop-widgets/command_edit.h index d77c46a27..d10da4325 100644 --- a/desktop-widgets/command_edit.h +++ b/desktop-widgets/command_edit.h @@ -182,6 +182,15 @@ public: DiveField fieldId() const override; }; +class EditDiveMaster : public EditTagsBase { +public: + using EditTagsBase::EditTagsBase; // Use constructor of base class. + QStringList data(struct dive *d) const override; + void set(struct dive *d, const QStringList &v) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + } // namespace Command #endif -- cgit v1.2.3-70-g09d2