summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_edit.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-07 21:23:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit02d572226df82ccbdfff3c455c9e5b20a7992bc4 (patch)
tree26b213e2a2af1302631dd2dd2fd2ed3e622793ed /desktop-widgets/command_edit.h
parenta9bd0690fe1d6bd841b0ede2ac53b280ef907b93 (diff)
downloadsubsurface-02d572226df82ccbdfff3c455c9e5b20a7992bc4.tar.gz
Undo: implement undo of divemaster editing
This is mostly a trivial copy of the buddies code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_edit.h')
-rw-r--r--desktop-widgets/command_edit.h9
1 files changed, 9 insertions, 0 deletions
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