aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r--qt-models/divelocationmodel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h
index 1bf7cedfd..ee5f3c362 100644
--- a/qt-models/divelocationmodel.h
+++ b/qt-models/divelocationmodel.h
@@ -6,11 +6,13 @@
class LocationInformationModel : public QAbstractListModel {
Q_OBJECT
public:
- LocationInformationModel(QObject *obj = 0);
+ static LocationInformationModel *instance();
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const;
+public slots:
void update();
private:
+ LocationInformationModel(QObject *obj = 0);
int internalRowCount;
};