diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-05-22 14:44:28 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-05-22 14:44:28 (GMT) |
commit | 514cbf7302059e779e11dbc4a3b06355d9ecd096 (patch) | |
tree | 518c5dec591a586def32202143acce7421439c83 /src/gui/styles/qs60style.cpp | |
parent | a8b0c84daf6cba6d557245954568b32cb690583f (diff) | |
download | Qt-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.cpp | 4 |
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) |