summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r--qt-models/maplocationmodel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h
index 2793a5137..7a1730653 100644
--- a/qt-models/maplocationmodel.h
+++ b/qt-models/maplocationmodel.h
@@ -38,6 +38,7 @@ class MapLocationModel : public QAbstractListModel
{
Q_OBJECT
Q_PROPERTY(int count READ count NOTIFY countChanged)
+ Q_PROPERTY(quint32 selectedUuid READ selectedUuid WRITE setSelectedUuid NOTIFY selectedLocationChanged)
public:
MapLocationModel(QObject *parent = NULL);
@@ -56,11 +57,16 @@ protected:
QHash<int, QByteArray> roleNames() const;
private:
+ quint32 selectedUuid();
+ void setSelectedUuid(quint32);
+
QVector<MapLocation *> m_mapLocations;
QHash<int, QByteArray> m_roles;
+ quint32 m_selectedUuid;
signals:
void countChanged(int c);
+ void selectedLocationChanged(MapLocation *);
};