summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-05-07 10:57:37 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-05-07 11:01:15 +0200
commit7dbe768ffc91859ace1ea1947698be4db6be9701 (patch)
treeca1e0ec8f1e282e2dfc47773eeaeaa57c3212623 /platform
parentb7fa1d719677e7782d9a53f8fce92c09b15eba12 (diff)
downloadqtlocation-mapboxgl-7dbe768ffc91859ace1ea1947698be4db6be9701.tar.gz
change the window title to indicate the current style
Diffstat (limited to 'platform')
-rw-r--r--platform/default/glfw_view.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp
index 286be5d8ac..789d2d4b6e 100644
--- a/platform/default/glfw_view.cpp
+++ b/platform/default/glfw_view.cpp
@@ -319,6 +319,10 @@ void GLFWView::setShouldClose() {
glfwPostEmptyEvent();
}
+void GLFWView::setWindowTitle(const std::string& title) {
+ glfwSetWindowTitle(window, (std::string { "Mapbox GL: " } + title).c_str());
+}
+
namespace mbgl {
namespace platform {