diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-08-02 15:51:16 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-08-17 14:43:22 +0300 |
commit | 5057d7ef5d218f3f9636d128e36970c077acafbd (patch) | |
tree | 59d58ab3a4a50e5116ea8a7243f54674a8ca7f30 /platform/qt/src/qquickmapboxglrenderer.cpp | |
parent | aa13acdb8782f3f2b671080342644ad6b8561973 (diff) | |
download | qtlocation-mapboxgl-5057d7ef5d218f3f9636d128e36970c077acafbd.tar.gz |
[Qt] Use QVariantMap in QQuickMapboxGLStyleProperty
Diffstat (limited to 'platform/qt/src/qquickmapboxglrenderer.cpp')
-rw-r--r-- | platform/qt/src/qquickmapboxglrenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/src/qquickmapboxglrenderer.cpp b/platform/qt/src/qquickmapboxglrenderer.cpp index 326eafa928..35a32be2ad 100644 --- a/platform/qt/src/qquickmapboxglrenderer.cpp +++ b/platform/qt/src/qquickmapboxglrenderer.cpp @@ -89,14 +89,14 @@ void QQuickMapboxGLRenderer::synchronize(QQuickFramebufferObject *item) if (m_styleLoaded) { if (!quickMap->layoutPropertyChanges().empty()) { for (const auto& change: quickMap->layoutPropertyChanges()) { - m_map->setLayoutProperty(change.layer, change.property, change.value); + m_map->setLayoutProperty(change.value("layer").toString(), change.value("property").toString(), change.value("value")); } quickMap->layoutPropertyChanges().clear(); } if (!quickMap->paintPropertyChanges().empty()) { for (const auto& change: quickMap->paintPropertyChanges()) { - m_map->setPaintProperty(change.layer, change.property, change.value, change.klass); + m_map->setPaintProperty(change.value("layer").toString(), change.value("property").toString(), change.value("value"), change.value("class").toString()); } quickMap->paintPropertyChanges().clear(); } |