diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-06-23 18:05:06 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-23 18:05:25 +0200 |
commit | ba4294ae0c06c1ed160f0be47863c9515da8d403 (patch) | |
tree | 5a16d8c200d21fbdf1bb0d91168452aea6142b90 /common | |
parent | f51fd9be585814dedf108cb6e81a674717e39fe6 (diff) | |
download | qtlocation-mapboxgl-ba4294ae0c06c1ed160f0be47863c9515da8d403.tar.gz |
saving current state
Diffstat (limited to 'common')
-rw-r--r-- | common/glfw_view.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp index b4e6c72463..bcfa5f1bc1 100644 --- a/common/glfw_view.cpp +++ b/common/glfw_view.cpp @@ -78,15 +78,8 @@ void GLFWView::key(GLFWwindow *window, int key, int /*scancode*/, int action, in break; case GLFW_KEY_R: if (!mods) { - std::set<std::string> newAppliedClasses; - if (view->map->getAppliedClasses().count("night")) { - newAppliedClasses.insert("default"); - } else { - newAppliedClasses.insert("default"); - newAppliedClasses.insert(newAppliedClasses.end(), "night"); - } view->map->setDefaultTransitionDuration(300); - view->map->setAppliedClasses(newAppliedClasses); + view->map->toggleClass("night"); } break; case GLFW_KEY_N: |