summaryrefslogtreecommitdiffstats
path: root/commands/command_edit.h
diff options
context:
space:
mode:
Diffstat (limited to 'commands/command_edit.h')
-rw-r--r--commands/command_edit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/commands/command_edit.h b/commands/command_edit.h
index 101c8b79b..cbbd0d968 100644
--- a/commands/command_edit.h
+++ b/commands/command_edit.h
@@ -222,6 +222,15 @@ public:
DiveField fieldId() const override;
};
+class EditInvalid : public EditBase<int> {
+public:
+ using EditBase<int>::EditBase; // Use constructor of base class.
+ void set(struct dive *d, int number) const override;
+ int data(struct dive *d) const override;
+ QString fieldName() const override;
+ DiveField fieldId() const override;
+};
+
// Fields that work with tag-lists (tags, buddies, divemasters) work differently and therefore
// have their own base class. In this case, it's not a template, as all these lists are base
// on strings.