@ -194,9 +194,13 @@ namespace Breeze
QStringLiteral ( " /BreezeDecoration " ) ,
QStringLiteral ( " /BreezeDecoration " ) ,
QStringLiteral ( " org.kde.Breeze.Style " ) ,
QStringLiteral ( " org.kde.Breeze.Style " ) ,
QStringLiteral ( " reparseConfiguration " ) , this , SLOT ( configurationChanged ( ) ) ) ;
QStringLiteral ( " reparseConfiguration " ) , this , SLOT ( configurationChanged ( ) ) ) ;
# if !BREEZE_USE_KDE4
# if !BREEZE_USE_KDE4
# if QT_VERSION < 0x050D00 // Check if Qt version < 5.13
this - > addEventFilter ( qApp ) ;
# else
connect ( qApp , & QApplication : : paletteChanged , this , & Style : : configurationChanged ) ;
connect ( qApp , & QApplication : : paletteChanged , this , & Style : : configurationChanged ) ;
# endif
# endif
# endif
// call the slot directly; this initial call will set up things that also
// call the slot directly; this initial call will set up things that also
// need to be reset when the system palette changes
// need to be reset when the system palette changes
loadConfiguration ( ) ;
loadConfiguration ( ) ;
@ -1024,6 +1028,9 @@ namespace Breeze
# if QT_VERSION >= 0x050000
# if QT_VERSION >= 0x050000
else if ( auto commandLinkButton = qobject_cast < QCommandLinkButton * > ( object ) ) { return eventFilterCommandLinkButton ( commandLinkButton , event ) ; }
else if ( auto commandLinkButton = qobject_cast < QCommandLinkButton * > ( object ) ) { return eventFilterCommandLinkButton ( commandLinkButton , event ) ; }
# endif
# endif
# if QT_VERSION < 0x050D00 // Check if Qt version < 5.13
else if ( object = = qApp & & event - > type ( ) = = QEvent : : ApplicationPaletteChange ) { configurationChanged ( ) ; }
# endif
// cast to QWidget
// cast to QWidget
QWidget * widget = static_cast < QWidget * > ( object ) ;
QWidget * widget = static_cast < QWidget * > ( object ) ;
if ( widget - > inherits ( " QAbstractScrollArea " ) | | widget - > inherits ( " KTextEditor::View " ) ) { return eventFilterScrollArea ( widget , event ) ; }
if ( widget - > inherits ( " QAbstractScrollArea " ) | | widget - > inherits ( " KTextEditor::View " ) ) { return eventFilterScrollArea ( widget , event ) ; }