diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-29 21:19:44 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-29 20:58:48 -0700 |
commit | 266e3099624deb566cb04d9eeaf2c59db028a576 (patch) | |
tree | 8fd0bda77c29bb106e8469f7ffd060d517ac1129 /qt-models/divelocationmodel.h | |
parent | 88549d18743823878d68de76d707630dd74e1bff (diff) | |
download | subsurface-266e3099624deb566cb04d9eeaf2c59db028a576.tar.gz |
LocationInformationModel moved to qt-models
I forgot about this one, and we are going to use it
in the mobile version too.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r-- | qt-models/divelocationmodel.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h new file mode 100644 index 000000000..1bf7cedfd --- /dev/null +++ b/qt-models/divelocationmodel.h @@ -0,0 +1,17 @@ +#ifndef DIVELOCATIONMODEL_H +#define DIVELOCATIONMODEL_H + +#include <QAbstractListModel> + +class LocationInformationModel : public QAbstractListModel { +Q_OBJECT +public: + LocationInformationModel(QObject *obj = 0); + int rowCount(const QModelIndex &parent = QModelIndex()) const; + QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const; + void update(); +private: + int internalRowCount; +}; + +#endif |