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>
This commit is contained in:
Berthold Stoeger 2019-02-07 21:23:00 +01:00 committed by Dirk Hohndel
parent a9bd0690fe
commit 02d572226d
6 changed files with 45 additions and 13 deletions

View file

@ -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