diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-11-26 11:50:29 (GMT) |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2009-11-26 11:59:20 (GMT) |
commit | 0607d4e999da14a76d032103d9f459e95cb4ad89 (patch) | |
tree | 6f0c4bbd9464887ba904e4a55727a0f0270b3429 /src/gui | |
parent | 16673c6f37e1b8170c395065dede1271d9839325 (diff) | |
download | Qt-0607d4e999da14a76d032103d9f459e95cb4ad89.zip Qt-0607d4e999da14a76d032103d9f459e95cb4ad89.tar.gz Qt-0607d4e999da14a76d032103d9f459e95cb4ad89.tar.bz2 |
Background in landscape mode on S60 5.0 is broken
After initial fix, 99% of widgets draw temselves properly after
orientation switch. However, QScrollAreas lose their palette hash,
which causes scrollarea background to re-start from theme background
top-left.
As a correction, we re-set the theme palette hash after calling
QApplication::setPalette, since that clears palette hash.
Task-number: QTBUG-6125
Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 2137244..ee10ff6 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -476,6 +476,7 @@ void QS60StylePrivate::setBackgroundTexture(QApplication *app) const applicationPalette.setBrush(QPalette::Window, backgroundTexture()); setThemePalette(&applicationPalette); QApplication::setPalette(applicationPalette); + setThemePaletteHash(&applicationPalette); } void QS60StylePrivate::deleteBackground() |