diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-11-26 11:50:29 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-11-26 11:50:29 (GMT) |
commit | c85d85b2a63cdbcf607789ed94ab5e4ac7ee560d (patch) | |
tree | 64f24feb720f68f36f02d348a06fad8282590b2f /src | |
parent | 8a6a554626b2362ef6a12faeb725a465eb33a9fa (diff) | |
download | Qt-c85d85b2a63cdbcf607789ed94ab5e4ac7ee560d.zip Qt-c85d85b2a63cdbcf607789ed94ab5e4ac7ee560d.tar.gz Qt-c85d85b2a63cdbcf607789ed94ab5e4ac7ee560d.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')
-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 b71ec5d..a9636b6 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -471,6 +471,7 @@ void QS60StylePrivate::setBackgroundTexture(QApplication *app) const applicationPalette.setBrush(QPalette::Window, backgroundTexture()); setThemePalette(&applicationPalette); QApplication::setPalette(applicationPalette); + setThemePaletteHash(&applicationPalette); } void QS60StylePrivate::deleteBackground() |