summaryrefslogtreecommitdiff
path: root/platform/qt/app/mapwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/app/mapwindow.cpp')
-rw-r--r--platform/qt/app/mapwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/qt/app/mapwindow.cpp b/platform/qt/app/mapwindow.cpp
index e8319365b7..55ab05cc01 100644
--- a/platform/qt/app/mapwindow.cpp
+++ b/platform/qt/app/mapwindow.cpp
@@ -160,7 +160,9 @@ void MapWindow::mouseMoveEvent(QMouseEvent *ev)
#endif
if (!delta.isNull()) {
- if (ev->buttons() == Qt::LeftButton) {
+ if (ev->buttons() == Qt::LeftButton && ev->modifiers() & Qt::ShiftModifier) {
+ m_map.setPitch(m_map.pitch() - delta.y());
+ } else if (ev->buttons() == Qt::LeftButton) {
m_map.moveBy(delta);
} else if (ev->buttons() == Qt::RightButton) {
#if QT_VERSION < 0x050000