summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/maplocationmodel.cpp')
-rw-r--r--qt-models/maplocationmodel.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp
index 8ce5e3020..152688367 100644
--- a/qt-models/maplocationmodel.cpp
+++ b/qt-models/maplocationmodel.cpp
@@ -28,6 +28,22 @@ QVariant MapLocation::getRole(int role) const
}
}
+QGeoCoordinate MapLocation::coordinate()
+{
+ return m_coordinate;
+}
+
+void MapLocation::setCoordinate(QGeoCoordinate coord)
+{
+ m_coordinate = coord;
+ emit coordinateChanged();
+}
+
+quint32 MapLocation::uuid()
+{
+ return m_uuid;
+}
+
MapLocationModel::MapLocationModel(QObject *parent) : QAbstractListModel(parent)
{
m_roles[MapLocation::Roles::RoleUuid] = MapLocation::PROPERTY_NAME_UUID;