From 81158554280420224b99ac172ed20ffed4fd9f11 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 17 May 2015 16:33:23 -0300 Subject: Start the model for location information. And implement the reset method. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qt-ui/locationinformation.h') 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 +#include + +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 -- cgit v1.2.3-70-g09d2