Also refresh stylesheet when chanfing application's QPalette

This commit is contained in:
Arnaud Bienner 2012-01-14 16:27:36 +01:00
parent 22d1608bdc
commit 97d8365c56
1 changed files with 0 additions and 2 deletions

View File

@ -95,8 +95,6 @@ void StyleSheetLoader::ReplaceColor(QString* css, const QString& name,
bool StyleSheetLoader::eventFilter(QObject* obj, QEvent* event) {
if (event->type() != QEvent::PaletteChange)
return false;
if (!event->spontaneous()) // Ignore events from our setStyleSheet
return false;
QWidget* widget = qobject_cast<QWidget*>(obj);
if (!widget || !filenames_.contains(widget))