summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-07-06 13:54:57 +0200
committerLiang Qi <liang.qi@qt.io>2017-07-06 13:55:56 +0200
commit40b8d8f0b1c4d3dfdb63994f1c5d9e16760496f7 (patch)
tree0ad7002074b2996460d72722435c97d76ddc6466 /src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
parent420139a36dace3bb8f78f2d65b30f7657668d888 (diff)
parent5542c721af400750b13bd411dfbb13891f49618e (diff)
downloadqtlocation-40b8d8f0b1c4d3dfdb63994f1c5d9e16760496f7.tar.gz
Merge remote-tracking branch 'origin/5.9' into dev
Conflicts: .qmake.conf Change-Id: I3241efba9c3a32a4a097a67fd6432c45aad8e6ef
Diffstat (limited to 'src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp')
-rw-r--r--src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
index 8229b784..c6972b07 100644
--- a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
+++ b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
@@ -59,7 +59,8 @@ bool isImmutableProperty(const QString &name)
QString getId(QDeclarativeGeoMapItemBase *mapItem)
{
- return QStringLiteral("QDeclarativeGeoMapItemBase-") + QString::number(quint64(mapItem));
+ return QStringLiteral("QtLocation-") +
+ ((mapItem->objectName().isEmpty()) ? QString::number(quint64(mapItem)) : mapItem->objectName());
}
// Mapbox GL supports geometry segments that spans above 180 degrees in