diff options
author | tobrun <tobrun.van.nuland@gmail.com> | 2019-12-18 17:35:47 +0100 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2019-12-19 10:21:02 +0100 |
commit | 47c87422a0b020bd9418d171f2aa0ed3ba524ca9 (patch) | |
tree | 4d445348946779245c1975bb254b65fef5145415 /platform/qt | |
parent | 9a94c5f361e8a4e78cde6baa7214fb5425c2878c (diff) | |
download | qtlocation-mapboxgl-47c87422a0b020bd9418d171f2aa0ed3ba524ca9.tar.gz |
Revert "[core] Remove Map::cycleDebugOptions"
This reverts commit 1e2cd1e086c3053f1cea075d7641b7f56cc7dfbf.
Diffstat (limited to 'platform/qt')
-rw-r--r-- | platform/qt/app/mapwindow.cpp | 3 | ||||
-rw-r--r-- | platform/qt/include/qmapboxgl.hpp | 2 | ||||
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 9 |
3 files changed, 14 insertions, 0 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp index 0a143280d3..6171c8bf35 100644 --- a/platform/qt/app/mapwindow.cpp +++ b/platform/qt/app/mapwindow.cpp @@ -400,6 +400,9 @@ void MapWindow::keyPressEvent(QKeyEvent *ev) } } break; + case Qt::Key_Tab: + m_map->cycleDebugOptions(); + break; default: break; } diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp index 337991aa1c..7441b1aa18 100644 --- a/platform/qt/include/qmapboxgl.hpp +++ b/platform/qt/include/qmapboxgl.hpp @@ -153,6 +153,8 @@ public: qreal pixelRatio = 1); virtual ~QMapboxGL(); + void cycleDebugOptions(); + QString styleJson() const; QString styleUrl() const; diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index a4cadf8100..1fdfb6ef3a 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -583,6 +583,15 @@ QMapboxGL::~QMapboxGL() } /*! + Cycles through several debug options like showing the tile borders, + tile numbers, expiration time and wireframe. +*/ +void QMapboxGL::cycleDebugOptions() +{ + d_ptr->mapObj->cycleDebugOptions(); +} + +/*! \property QMapboxGL::styleJson \brief the map style JSON. |