diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-18 13:22:37 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-04-20 20:55:51 +0300 |
commit | f83b8d8ea4631aa063d04e3194a84c75ba667dfd (patch) | |
tree | 9b61fcd0636b1bbadd954d2154309a5d1c16da1d /platform/qt/app/mapwindow.cpp | |
parent | 7d863d259ae4d2f8a55a211c428a1ff11ae529f1 (diff) | |
download | qtlocation-mapboxgl-f83b8d8ea4631aa063d04e3194a84c75ba667dfd.tar.gz |
[Qt] Do not use Mapbox GL animations
Let animations to QPropertyAnimation so it can sync with other
Qt animations and let the user define the easing curve Qt-style.
Diffstat (limited to 'platform/qt/app/mapwindow.cpp')
-rw-r--r-- | platform/qt/app/mapwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp index 8827bea4fa..83e0ceab5f 100644 --- a/platform/qt/app/mapwindow.cpp +++ b/platform/qt/app/mapwindow.cpp @@ -93,9 +93,9 @@ void MapWindow::mousePressEvent(QMouseEvent *ev) if (ev->type() == QEvent::MouseButtonDblClick) { if (ev->buttons() == Qt::LeftButton) { - m_map.scaleBy(2.0, m_lastPos, 500); + m_map.scaleBy(2.0, m_lastPos); } else if (ev->buttons() == Qt::RightButton) { - m_map.scaleBy(0.5, m_lastPos, 500); + m_map.scaleBy(0.5, m_lastPos); } } @@ -141,7 +141,7 @@ void MapWindow::wheelEvent(QWheelEvent *ev) factor = factor > -1 ? factor : 1 / factor; } - m_map.scaleBy(1 + factor, ev->pos(), 50); + m_map.scaleBy(1 + factor, ev->pos()); ev->accept(); } |