mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <neolit123@gmail.com>
This commit is contained in:
parent
ea5221bcf0
commit
a9c0abd71a
3 changed files with 18 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue