diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-11-02 10:03:52 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-11-02 10:03:52 (GMT) |
commit | a80e58335e69c8ce96d1596e0ed2d14e424a0d5e (patch) | |
tree | f3b5bd1ce71fb8806bcce3e72dd21937945b0507 /src/gui/styles | |
parent | 8910b449dafcb3475ab8c6f90213cd632412da68 (diff) | |
download | Qt-a80e58335e69c8ce96d1596e0ed2d14e424a0d5e.zip Qt-a80e58335e69c8ce96d1596e0ed2d14e424a0d5e.tar.gz Qt-a80e58335e69c8ce96d1596e0ed2d14e424a0d5e.tar.bz2 |
Style's theme palette hash is lost after orientation switch
Currently, after orientation switch when new theme background is applied,
it is done using QApplication::setPalette(). This unfortunately tosses
away the palette hash. So instead directly calling
QApplication::setPalette(), the fix is to call the style's internal
setThemePalette(), which copies the hash also to QApplication palette.
This is related to bug QT-1478 in Private JIRA.
Task-number: QT-1478
Reviewed-by: Shane Kearns
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 10a63a8..48f7042 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -499,7 +499,7 @@ void QS60StylePrivate::setBackgroundTexture(QApplication *app) const Q_UNUSED(app) QPalette applicationPalette = QApplication::palette(); applicationPalette.setBrush(QPalette::Window, backgroundTexture()); - QApplication::setPalette(applicationPalette); + setThemePalette(app); } void QS60StylePrivate::deleteBackground() |