diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-05-28 17:29:58 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-29 14:11:26 -0700 |
commit | 257f8063c4437eced155ec5ad0b40791ca814dfb (patch) | |
tree | 318060630a47335ba84efff851d7222c53865068 /qt-models/divecomputerextradatamodel.h | |
parent | d84ffa8fc3162692597c19c42e621f7d8ac58dca (diff) | |
download | subsurface-257f8063c4437eced155ec5ad0b40791ca814dfb.tar.gz |
Move ExtraDataModel to qt-models
Another attempt to make it easyer to create the mobile version.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divecomputerextradatamodel.h')
-rw-r--r-- | qt-models/divecomputerextradatamodel.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qt-models/divecomputerextradatamodel.h b/qt-models/divecomputerextradatamodel.h new file mode 100644 index 000000000..5d5edb8c6 --- /dev/null +++ b/qt-models/divecomputerextradatamodel.h @@ -0,0 +1,25 @@ +#ifndef DIVECOMPUTEREXTRADATAMODEL_H +#define DIVECOMPUTEREXTRADATAMODEL_H + +#include "cleanertablemodel.h" + +/* 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; +}; + +#endif |