diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-06-27 11:14:39 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-28 13:22:22 (GMT) |
commit | c358e12777789cacb127e8cb0aef61a4a0142172 (patch) | |
tree | 42b499bec242d12ef8e0613c24e2f94e394dc39a | |
parent | b1c46b4b3e322554146aed92cd6035cd9ba43982 (diff) | |
download | Qt-c358e12777789cacb127e8cb0aef61a4a0142172.zip Qt-c358e12777789cacb127e8cb0aef61a4a0142172.tar.gz Qt-c358e12777789cacb127e8cb0aef61a4a0142172.tar.bz2 |
QNX: Flush after changing rotation
This fixes a painting glitch where the window would stay in the old
position with the old rotation until it got repainted.
This is a backport of commit
c196f89b7e298252944680bf0ba230a33feef718 from qtbase.
Change-Id: Idbbcd706befef0aadb3f79ab412b41f487ae978b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/plugins/platforms/blackberry/qbbscreen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbscreen.cpp b/src/plugins/platforms/blackberry/qbbscreen.cpp index 2902f7e..d36723a 100644 --- a/src/plugins/platforms/blackberry/qbbscreen.cpp +++ b/src/plugins/platforms/blackberry/qbbscreen.cpp @@ -228,6 +228,10 @@ void QBBScreen::setRotation(int rotation) // Rotating only the primary screen is what we had in the navigator event handler before refactoring if (mPrimaryDisplay) QWindowSystemInterface::handleScreenGeometryChange(mScreenIndex); + + // Flush everything, so that the windows rotations are applied properly. + // Needed for non-maximized windows + screen_flush_context(mContext, 0); } } |