summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens.qnx@kdab.com>2012-05-21 12:51:17 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-23 23:55:43 +0200
commite9d20b1951657ace845f730df3c924ddadcf15af (patch)
treecd79eb42cd9398e242229ca6f6cd8bccb253211b
parent375b464db49ffab6149d0ab3952bcd9cb58ce653 (diff)
QNX: Post orientation change events
Change-Id: I4dc13e5388e065c2425641c7efabcdee8f94800e Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
-rw-r--r--src/plugins/platforms/qnx/qqnxscreen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp
index f33de5be21..b918dd6a41 100644
--- a/src/plugins/platforms/qnx/qqnxscreen.cpp
+++ b/src/plugins/platforms/qnx/qqnxscreen.cpp
@@ -223,8 +223,10 @@ void QQnxScreen::setRotation(int rotation)
// TODO: check if other screens are supposed to rotate as well and/or whether this depends
// on if clone mode is being used.
// Rotating only the primary screen is what we had in the navigator event handler before refactoring
- if (m_primaryScreen)
+ if (m_primaryScreen) {
+ QWindowSystemInterface::handleScreenOrientationChange(screen(), orientation());
QWindowSystemInterface::handleScreenGeometryChange(screen(), m_currentGeometry);
+ }
}
}