summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2009-11-25 15:29:34 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2009-11-25 15:29:34 (GMT)
commitd6f1feb5f0f639f9fb2deb5dc3758f5d6b7ad4d1 (patch)
treea398d20270c77606d9eb6becb2eae76f926c17b4 /src/gui/styles/qs60style.cpp
parent2a3a270e5d2a26b9ef7405abfa1892beaece9b04 (diff)
downloadQt-d6f1feb5f0f639f9fb2deb5dc3758f5d6b7ad4d1.zip
Qt-d6f1feb5f0f639f9fb2deb5dc3758f5d6b7ad4d1.tar.gz
Qt-d6f1feb5f0f639f9fb2deb5dc3758f5d6b7ad4d1.tar.bz2
Fixing background painting after orientation switch.
Fixing previous fixes of QS60StylePrivate::setBackgroundTexture with commit SHAs a80e58335e69c8ce96d1596e0ed2d14e424a0d5e and d4089399a3ab7548a864d5a399e08df85c444783 Now, the palette gets the updated background brush and the palette is actually set as application palette. Also making sure that QS60StylePrivate::handleDynamicLayoutVariantSwitch does the right things in the right order. So that Table headers are not broken after orientaion switch. Task-number: QTBUG-6125 Task-number: QT-1478
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-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 974c3ff..6c328b9 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -470,6 +470,7 @@ void QS60StylePrivate::setBackgroundTexture(QApplication *app) const
QPalette applicationPalette = QApplication::palette();
applicationPalette.setBrush(QPalette::Window, backgroundTexture());
setThemePalette(&applicationPalette);
+ QApplication::setPalette(applicationPalette);
}
void QS60StylePrivate::deleteBackground()