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:00:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commita9bd0690fe1d6bd841b0ede2ac53b280ef907b93 (patch)
tree663bd078f59c8e08902b31fe59395b7327728ee7 /desktop-widgets/command_edit.h
parent8c89f6fe1520d9d88fb81acab995ba803f5c4ac1 (diff)
downloadsubsurface-a9bd0690fe1d6bd841b0ede2ac53b280ef907b93.tar.gz
Undo: implement undo of buddy editing
This was mostly trivial by reusing the code for tag-editing. 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 fab951799..d77c46a27 100644
--- a/desktop-widgets/command_edit.h
+++ b/desktop-widgets/command_edit.h
@@ -173,6 +173,15 @@ public:
DiveField fieldId() const override;
};
+class EditBuddies : 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