diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-09-15 13:07:05 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-09-15 13:07:05 (GMT) |
commit | 68cc31ad700abc4dc480c39e98feea4fe904db71 (patch) | |
tree | eca904b81594a054c3b4b36569f8563b6eca4cd4 /src/gui | |
parent | 916ba1588577b971a1e5ae6ce10c1348388ea6ee (diff) | |
download | Qt-68cc31ad700abc4dc480c39e98feea4fe904db71.zip Qt-68cc31ad700abc4dc480c39e98feea4fe904db71.tar.gz Qt-68cc31ad700abc4dc480c39e98feea4fe904db71.tar.bz2 |
Regression in QS60Style when drawing webview scrollbars
QWebviews draws scrollbar background with bright green.
This is regression caused by QS60Style change SHA
7dfa50a9b97d28813341329a55aa1a4b5a7de527. This SHA changed theme background
creation to happen just before drawing. Unfortunately, web widgets have
slightly different palette than non-web widgets, so the style didn't catch
the incorrect background texture when painting. Thus, the background was drawn
with initialized color (green).
Task-number: QTBUG-21463
Reviewed-by: Miikka Heikkinen
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 816c094..eec2d15 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -842,6 +842,7 @@ void QS60StylePrivate::setThemePaletteHash(QPalette *palette) webPalette.setColor(QPalette::WindowText, Qt::black); webPalette.setColor(QPalette::Text, Qt::black); webPalette.setBrush(QPalette::Base, Qt::white); + webPalette.setBrush(QPalette::Window, Qt::white); QApplication::setPalette(webPalette, "QWebView"); QApplication::setPalette(webPalette, "QGraphicsWebView"); |