From 539989f41316329e7aba69ba97e1579eed6036e6 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 1 Jun 2009 18:43:29 +0200 Subject: Set each widgets palette after changing the theme. --- src/gui/styles/qs60style_simulated.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 &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(); } -- cgit v0.12