mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
maplocationmodel: add the "namer" property
The MapLocation QObject now has a QString property "name", which is translating the dive_site->name member. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
8c7d1a1163
commit
be0d513324
3 changed files with 13 additions and 5 deletions
|
@ -52,7 +52,7 @@ void MapWidgetHelper::reloadMapLocations()
|
|||
}
|
||||
}
|
||||
if (!diveSiteTooClose)
|
||||
locationList.append(new MapLocation(ds->uuid, QGeoCoordinate(latitude, longitude)));
|
||||
locationList.append(new MapLocation(ds->uuid, QGeoCoordinate(latitude, longitude), QString(ds->name)));
|
||||
}
|
||||
m_mapLocationModel->addList(locationList);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue