diff options
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 547641fe7..2793a5137 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -12,19 +12,25 @@ class MapLocation : public QObject { Q_OBJECT + Q_PROPERTY(quint32 uuid MEMBER m_uuid) Q_PROPERTY(QGeoCoordinate coordinate MEMBER m_coordinate) public: + static const char *PROPERTY_NAME_COORDINATE; + static const char *PROPERTY_NAME_UUID; + explicit MapLocation(); - explicit MapLocation(QGeoCoordinate); + explicit MapLocation(quint32 uuid, QGeoCoordinate coord); QVariant getRole(int role) const; enum Roles { - RoleCoordinate = Qt::UserRole + 1, + RoleUuid = Qt::UserRole + 1, + RoleCoordinate }; private: + quint32 m_uuid; QGeoCoordinate m_coordinate; }; |