summaryrefslogtreecommitdiff
path: root/platform/qt/app/mapwindow.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-12-23 01:33:47 -0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-01-03 16:52:24 -0200
commitb8564299e5e76918ba0ec01eb4fb99bd9756638b (patch)
tree517c6b72daa932c69782e24d64d355ed37c9025b /platform/qt/app/mapwindow.cpp
parent5437c7b5b377d215baacea5f593559cfc9a6b7e6 (diff)
downloadqtlocation-mapboxgl-b8564299e5e76918ba0ec01eb4fb99bd9756638b.tar.gz
[Qt] Simplify setTransitionOptions
Diffstat (limited to 'platform/qt/app/mapwindow.cpp')
-rw-r--r--platform/qt/app/mapwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp
index 28a3f1df4b..4c2c0ed2ad 100644
--- a/platform/qt/app/mapwindow.cpp
+++ b/platform/qt/app/mapwindow.cpp
@@ -79,7 +79,7 @@ void MapWindow::changeStyle()
void MapWindow::keyPressEvent(QKeyEvent *ev)
{
- static const QMapbox::TransitionOptions transition { 300, {} };
+ static const qint64 transitionDuration = 300;
switch (ev->key()) {
case Qt::Key_S:
@@ -201,7 +201,7 @@ void MapWindow::keyPressEvent(QKeyEvent *ev)
m_map->cycleDebugOptions();
break;
case Qt::Key_R: {
- m_map->setTransitionOptions(transition);
+ m_map->setTransitionOptions(transitionDuration);
if (m_map->hasClass("night")) {
m_map->removeClass("night");
} else {