QNX: Post orientation change events
authorKevin Ottens <kevin.ottens.qnx@kdab.com>
Mon, 21 May 2012 10:51:17 +0000 (12:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 21:55:43 +0000 (23:55 +0200)
Change-Id: I4dc13e5388e065c2425641c7efabcdee8f94800e
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
src/plugins/platforms/qnx/qqnxscreen.cpp

index f33de5b..b918dd6 100644 (file)
@@ -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);
+        }
     }
 }