diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp index bc83e2d97..72bb5729c 100644 --- a/platform/qt/app/mapwindow.cpp +++ b/platform/qt/app/mapwindow.cpp @@ -59,7 +59,7 @@ void MapWindow::changeStyle() auto& styles = QMapbox::defaultStyles(); - m_map.setStyleURL(styles[currentStyleIndex].first); + m_map.setStyleUrl(styles[currentStyleIndex].first); setWindowTitle(QString("Mapbox GL: ") + styles[currentStyleIndex].second); if (++currentStyleIndex == styles.size()) { diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp index a48073f19..84e5ba518 100644 --- a/platform/qt/include/qmapboxgl.hpp +++ b/platform/qt/include/qmapboxgl.hpp @@ -119,11 +119,11 @@ public: void cycleDebugOptions(); - QString styleJSON() const; - QString styleURL() const; + QString styleJson() const; + QString styleUrl() const; - void setStyleJSON(const QString &); - void setStyleURL(const QString &); + void setStyleJson(const QString &); + void setStyleUrl(const QString &); double latitude() const; void setLatitude(double latitude); diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index dd243c639..c0fe6e6b4 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -231,22 +231,22 @@ void QMapboxGL::cycleDebugOptions() d_ptr->mapObj->cycleDebugOptions(); } -QString QMapboxGL::styleJSON() const +QString QMapboxGL::styleJson() const { return QString::fromStdString(d_ptr->mapObj->getStyleJSON()); } -QString QMapboxGL::styleURL() const +QString QMapboxGL::styleUrl() const { return QString::fromStdString(d_ptr->mapObj->getStyleURL()); } -void QMapboxGL::setStyleJSON(const QString &style) +void QMapboxGL::setStyleJson(const QString &style) { d_ptr->mapObj->setStyleJSON(style.toStdString()); } -void QMapboxGL::setStyleURL(const QString &url) +void QMapboxGL::setStyleUrl(const QString &url) { d_ptr->mapObj->setStyleURL(url.toStdString()); } diff --git a/platform/qt/src/qquickmapboxglrenderer.cpp b/platform/qt/src/qquickmapboxglrenderer.cpp index 54ea251b0..9ced17bb3 100644 --- a/platform/qt/src/qquickmapboxglrenderer.cpp +++ b/platform/qt/src/qquickmapboxglrenderer.cpp @@ -85,7 +85,7 @@ void QQuickMapboxGLRenderer::synchronize(QQuickFramebufferObject *item) } if (syncStatus & QQuickMapboxGL::StyleNeedsSync && quickMap->style()) { - m_map->setStyleURL(quickMap->style()->url()); + m_map->setStyleUrl(quickMap->style()->url()); m_styleLoaded = false; }