summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-05-22 14:44:28 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-05-22 14:44:28 (GMT)
commit514cbf7302059e779e11dbc4a3b06355d9ecd096 (patch)
tree518c5dec591a586def32202143acce7421439c83 /src/gui/styles/qs60style.cpp
parenta8b0c84daf6cba6d557245954568b32cb690583f (diff)
downloadQt-514cbf7302059e779e11dbc4a3b06355d9ecd096.zip
Qt-514cbf7302059e779e11dbc4a3b06355d9ecd096.tar.gz
Qt-514cbf7302059e779e11dbc4a3b06355d9ecd096.tar.bz2
S60Style: Fix palette-polution to other styles, when style is switched runtime.
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r--src/gui/styles/qs60style.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index baaab59..7b045ab 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -664,7 +664,9 @@ void QS60Style::polish(QWidget *widget)
void QS60Style::unpolish(QApplication *application)
{
- application->setPalette(originalPalette);
+ QPalette newPalette = qApp->style()->standardPalette();
+ application->setPalette(newPalette);
+ QApplicationPrivate::setSystemPalette(originalPalette);
}
void QS60Style::unpolish(QWidget *widget)