summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-11-26 11:50:29 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-11-27 00:56:08 (GMT)
commita86721be8dedd8b007a217f8e10521c459224cd9 (patch)
treee89236308db561f1d2d5a62580a5189a89d1cf19 /src
parentdd0fe90d3287df1fad7a1613e35c493d7667e7f8 (diff)
downloadQt-a86721be8dedd8b007a217f8e10521c459224cd9.zip
Qt-a86721be8dedd8b007a217f8e10521c459224cd9.tar.gz
Qt-a86721be8dedd8b007a217f8e10521c459224cd9.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 (cherry picked from commit 41f1276392444b9e46b30f3537a8a63af6fffc9d)
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qs60style.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 6e39efe..2984d99 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -475,6 +475,7 @@ void QS60StylePrivate::setBackgroundTexture(QApplication *app) const
applicationPalette.setBrush(QPalette::Window, backgroundTexture());
setThemePalette(&applicationPalette);
QApplication::setPalette(applicationPalette);
+ setThemePaletteHash(&applicationPalette);
}
void QS60StylePrivate::deleteBackground()