diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-07-26 16:10:15 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-09-22 10:57:15 +0200 |
commit | 796386473e8f0f361a69e6dcf0f85fa6a656ccc3 (patch) | |
tree | 12b2f406e75a7680f23441751f0c830f05e79b5f /platform/glfw/glfw_view.cpp | |
parent | 3a8dc12a8e9396ff54b06d5207164a97968fd8a5 (diff) | |
download | qtlocation-mapboxgl-796386473e8f0f361a69e6dcf0f85fa6a656ccc3.tar.gz |
[glfw] Save/Restore online status of DefaultFileSource
Diffstat (limited to 'platform/glfw/glfw_view.cpp')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 784e908878..d591f897e0 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -110,6 +110,7 @@ GLFWView::GLFWView(bool fullscreen_, bool benchmark_) printf("- Press `N` to reset north\n"); printf("- Press `R` to enable the route demo\n"); printf("- Press `E` to insert an example building extrusion layer\n"); + printf("- Press `O` to toggle online connectivity\n"); printf("- Press `Z` to cycle through north orientations\n"); printf("- Prezz `X` to cycle through the viewport modes\n"); printf("- Press `A` to cycle through Mapbox offices in the world + dateline monument\n"); @@ -176,6 +177,9 @@ void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action, if (!mods) view->map->resetPosition(); break; + case GLFW_KEY_O: + view->onlineStatusCallback(); + break; case GLFW_KEY_S: if (view->changeStyleCallback) view->changeStyleCallback(); |