diff options
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index a78c20be0..8750492a1 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -165,6 +165,24 @@ private: int rows; }; +/* extra data model for additional dive computer data */ +class ExtraDataModel : public CleanerTableModel { + Q_OBJECT +public: + enum Column { + KEY, + VALUE + }; + explicit ExtraDataModel(QObject *parent = 0); + /*reimp*/ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + /*reimp*/ int rowCount(const QModelIndex &parent = QModelIndex()) const; + + void clear(); + void updateDive(); +private: + int rows; +}; + /*! An AbstractItemModel for recording dive trip information such as a list of dives. * */ |