summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-05-29 21:19:44 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-29 20:58:48 -0700
commit266e3099624deb566cb04d9eeaf2c59db028a576 (patch)
tree8fd0bda77c29bb106e8469f7ffd060d517ac1129 /qt-models/divelocationmodel.h
parent88549d18743823878d68de76d707630dd74e1bff (diff)
downloadsubsurface-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.h17
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