summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmapwidgethelper.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-25 23:15:28 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commitbe0d5133240f6113cced1df43b5a5f58c3eff6ed (patch)
tree99fab047a72ce753761ff2d97afbc7a68378b3ec /mobile-widgets/qmlmapwidgethelper.cpp
parent8c7d1a1163ba22cd1b5e75b723affacc9d0cfd1c (diff)
downloadsubsurface-be0d5133240f6113cced1df43b5a5f58c3eff6ed.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qmlmapwidgethelper.cpp')
-rw-r--r--mobile-widgets/qmlmapwidgethelper.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}