From a9c0abd71aa6d70262d9b218187e4b8d3ec15f07 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 19 Jul 2017 02:02:43 +0300 Subject: maplocationmodel: add a "uuid" property to MapLocation The "uuid" property will be the one from the dive_site. At first it will also be used to track the active marker/flag selection. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qmlmapwidgethelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp index 7fceccdfa..264b62abb 100644 --- a/mobile-widgets/qmlmapwidgethelper.cpp +++ b/mobile-widgets/qmlmapwidgethelper.cpp @@ -34,7 +34,7 @@ void MapWidgetHelper::reloadMapLocations() continue; const qreal longitude = ds->longitude.udeg / 1000000.0; const qreal latitude = ds->latitude.udeg / 1000000.0; - locationList.append(new MapLocation(QGeoCoordinate(latitude, longitude))); + locationList.append(new MapLocation(ds->uuid, QGeoCoordinate(latitude, longitude))); } m_mapLocationModel->addList(locationList); } -- cgit v1.2.3-70-g09d2