From f83b8d8ea4631aa063d04e3194a84c75ba667dfd Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 18 Jan 2016 13:22:37 +0200 Subject: [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. --- platform/qt/app/mapwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/qt/app/mapwindow.cpp') 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(); } -- cgit v1.2.1