diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-07-20 20:53:06 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-08-08 09:12:09 -0700 |
commit | 78f425de68cdb1504e477519577d22efd694fec0 (patch) | |
tree | b0c5eade70b813149d0a8c925b2817bcd7a45a6e /desktop-widgets/tab-widgets/TabDiveEquipment.h | |
parent | 9a562f221aa9fc86dc982bfcf1baf76e5a114a76 (diff) | |
download | subsurface-78f425de68cdb1504e477519577d22efd694fec0.tar.gz |
Move the Suit text box from the Notes tab to the Equipment tab
Sqash latest commit with previous one.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveEquipment.h')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveEquipment.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.h b/desktop-widgets/tab-widgets/TabDiveEquipment.h index 44c67cb27..1edc20cef 100644 --- a/desktop-widgets/tab-widgets/TabDiveEquipment.h +++ b/desktop-widgets/tab-widgets/TabDiveEquipment.h @@ -4,6 +4,8 @@ #include "TabBase.h" #include "ui_TabDiveEquipment.h" +#include "qt-models/completionmodels.h" +#include "desktop-widgets/divelistview.h" namespace Ui { class TabDiveEquipment; @@ -21,15 +23,21 @@ public: void clear() override; void acceptChanges(); void rejectChanges(); + void divesEdited(int i); + void closeWarning(); + private slots: + void divesChanged(const QVector<dive *> &dives, DiveField field); void addCylinder_clicked(); void addWeight_clicked(); void toggleTriggeredColumn(); void editCylinderWidget(const QModelIndex &index); void editWeightWidget(const QModelIndex &index); + void on_suit_editingFinished(); + private: Ui::TabDiveEquipment ui; - + SuitCompletionModel suitModel; CylindersModel *cylindersModel; WeightModel *weightModel; }; |