summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-10-08 15:02:39 -0700
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-04-20 20:55:51 +0300
commitb2cd18a550350c42bd90f59cdc8e39d0dda6f23c (patch)
tree1eb2d9a0814fd3685ec4d78841d216272ce174ab
parent2d156ec6a91af9228f7b36d3e19eedf5ccbd7aa5 (diff)
downloadqtlocation-mapboxgl-b2cd18a550350c42bd90f59cdc8e39d0dda6f23c.tar.gz
[Qt] Forward toggleDebug() from mbgl::Map
-rw-r--r--platform/qt/include/qmapboxgl.hpp2
-rw-r--r--platform/qt/src/qmapboxgl.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp
index 5a123a59c6..b89fc1361e 100644
--- a/platform/qt/include/qmapboxgl.hpp
+++ b/platform/qt/include/qmapboxgl.hpp
@@ -51,6 +51,8 @@ public:
QMapboxGL(QObject *parent = 0, const QMapboxGLSettings& = QMapboxGLSettings());
virtual ~QMapboxGL();
+ void cycleDebugOptions();
+
void setStyleJSON(const QString &);
void setStyleURL(const QString &);
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp
index 9dd7babd62..acb57f18b3 100644
--- a/platform/qt/src/qmapboxgl.cpp
+++ b/platform/qt/src/qmapboxgl.cpp
@@ -75,6 +75,11 @@ QMapboxGL::~QMapboxGL()
delete d_ptr;
}
+void QMapboxGL::cycleDebugOptions()
+{
+ d_ptr->mapObj->cycleDebugOptions();
+}
+
void QMapboxGL::setStyleJSON(const QString &style)
{
d_ptr->mapObj->setStyleJSON(style.toUtf8().constData());