Also refresh stylesheet when chanfing application's QPalette
This commit is contained in:
parent
22d1608bdc
commit
97d8365c56
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue