summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-06-01 16:43:29 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-06-01 16:43:29 (GMT)
commit539989f41316329e7aba69ba97e1579eed6036e6 (patch)
treeae473dc25515afbaecee767e0745681b4c5373d1
parent488088b95351716f800acfc48e0ca2885950c261 (diff)
downloadQt-539989f41316329e7aba69ba97e1579eed6036e6.zip
Qt-539989f41316329e7aba69ba97e1579eed6036e6.tar.gz
Qt-539989f41316329e7aba69ba97e1579eed6036e6.tar.bz2
Set each widgets palette after changing the theme.
-rw-r--r--src/gui/styles/qs60style_simulated.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_simulated.cpp b/src/gui/styles/qs60style_simulated.cpp
index b6ad0ac..7131640 100644
--- a/src/gui/styles/qs60style_simulated.cpp
+++ b/src/gui/styles/qs60style_simulated.cpp
@@ -268,11 +268,14 @@ void QS60Style::setS60Theme(const QHash<QString, QPicture> &parts,
QS60StyleModeSpecifics::m_colors = colors;
d->clearCaches(QS60StylePrivate::CC_ThemeChange);
d->setBackgroundTexture(qApp);
+
+ foreach (QWidget *widget, QApplication::allWidgets())
+ d->setThemePalette(widget);
}
QPoint qt_s60_fill_background_offset(const QWidget *targetWidget)
{
- Q_UNUSED(targetWidget)
+ Q_UNUSED(targetWidget)
return QPoint();
}