diff options
Diffstat (limited to 'qt-models/divecomputerextradatamodel.h')
-rw-r--r-- | qt-models/divecomputerextradatamodel.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/qt-models/divecomputerextradatamodel.h b/qt-models/divecomputerextradatamodel.h index ab78e4541..9af4028eb 100644 --- a/qt-models/divecomputerextradatamodel.h +++ b/qt-models/divecomputerextradatamodel.h @@ -4,6 +4,8 @@ #include "cleanertablemodel.h" +struct divecomputer; + /* extra data model for additional dive computer data */ class ExtraDataModel : public CleanerTableModel { Q_OBJECT @@ -17,10 +19,14 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const override; void clear(); - void updateDive(); + void updateDiveComputer(const struct divecomputer *dc); private: - int rows; + struct Item { + QString key; + QString value; + }; + std::vector<Item> items; }; #endif |