summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
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