From de579c1a1ad823fbc42d7e3122b77b03626283c3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 30 Jan 2019 22:13:24 +0100 Subject: Undo: implement undo of air and water temperature editing Mostly trivial. Since now on editing the field is re-set, the validation function becomes unnecessary. Signed-off-by: Berthold Stoeger --- desktop-widgets/command_edit.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'desktop-widgets/command_edit.h') diff --git a/desktop-widgets/command_edit.h b/desktop-widgets/command_edit.h index 831f7f971..cc4ea2374 100644 --- a/desktop-widgets/command_edit.h +++ b/desktop-widgets/command_edit.h @@ -83,6 +83,24 @@ public: DiveField fieldId() const override; }; +class EditAirTemp : public EditBase { +public: + using EditBase::EditBase; // Use constructor of base class. + void set(struct dive *d, int value) const override; + int data(struct dive *d) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + +class EditWaterTemp : public EditBase { +public: + using EditBase::EditBase; // Use constructor of base class. + void set(struct dive *d, int value) const override; + int data(struct dive *d) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + class EditMode : public EditBase { int index; public: -- cgit v1.2.3-70-g09d2