From be0d5133240f6113cced1df43b5a5f58c3eff6ed Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 25 Jul 2017 23:15:28 +0300 Subject: 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 --- mobile-widgets/qmlmapwidgethelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qmlmapwidgethelper.cpp') diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp index be3ede0bc..f0855e52d 100644 --- a/mobile-widgets/qmlmapwidgethelper.cpp +++ b/mobile-widgets/qmlmapwidgethelper.cpp @@ -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); } -- cgit v1.2.3-70-g09d2