diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-25 23:15:28 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | be0d5133240f6113cced1df43b5a5f58c3eff6ed (patch) | |
tree | 99fab047a72ce753761ff2d97afbc7a68378b3ec /mobile-widgets/qmlmapwidgethelper.cpp | |
parent | 8c7d1a1163ba22cd1b5e75b723affacc9d0cfd1c (diff) | |
download | subsurface-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.cpp | 2 |
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);
}
|