Application background is incorrect if app locked to landscape.
authorSami Merila <sami.merila@nokia.com>
Wed, 26 Jan 2011 07:05:19 +0000 (09:05 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Fri, 28 Jan 2011 09:46:00 +0000 (19:46 +1000)
commit55f760f36b945af4e3f2009ecee3d234d421d2ce
tree99d6b80b5994f85fe76752558c5ade0407f8445e
parent374aa39abf0fc14eadb59346c5fb9d6dd763e592
Application background is incorrect if app locked to landscape.

If application orientation has been locked to landscape and application
is started out while device orientation is portrait, QS60Style draws
the QPalette::background like device would be in landscape. Style
is incorrectly following device orientation, when it should follow
application orientation.

As a fix, style follows now application orientation. As a bonus,
unnecessary fullscreen QPixmap creation is avoided when rotating the
device.

Task-number: QTBUG-16816
Reviewed-by: Jani Hautakangas
(cherry picked from commit 54313b3ba81c276cf06c40c2420b1ff1f30e64c3)
src/gui/styles/qs60style_s60.cpp