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>
This commit is contained in:
willemferguson 2019-07-20 20:53:06 +02:00 committed by Dirk Hohndel
parent 9a562f221a
commit 78f425de68
6 changed files with 102 additions and 45 deletions

View file

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