summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-09-15 13:07:05 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-09-15 13:07:05 (GMT)
commit68cc31ad700abc4dc480c39e98feea4fe904db71 (patch)
treeeca904b81594a054c3b4b36569f8563b6eca4cd4 /src/gui
parent916ba1588577b971a1e5ae6ce10c1348388ea6ee (diff)
downloadQt-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.cpp1
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");