aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/locationinformation.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-05-17 16:33:23 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-17 13:52:19 -0700
commit81158554280420224b99ac172ed20ffed4fd9f11 (patch)
tree07ed001a1a86e507537bb22dcc239783fc615a57 /qt-ui/locationinformation.h
parent5eb572b9c63f828e547c502b0dd4df55ff878cad (diff)
downloadsubsurface-81158554280420224b99ac172ed20ffed4fd9f11.tar.gz
Start the model for location information.
And implement the reset method. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.h')
-rw-r--r--qt-ui/locationinformation.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h
index 99974af49..1050a87d5 100644
--- a/qt-ui/locationinformation.h
+++ b/qt-ui/locationinformation.h
@@ -3,6 +3,18 @@
#include "ui_locationInformation.h"
#include <stdint.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;
+};
class LocationInformationWidget : public QGroupBox {
Q_OBJECT