With Qt6 on linux, we need to catch StyleChange here

This commit is contained in:
Juergen Spitzmueller 2023-09-05 12:01:17 +02:00
parent 7c8c3657fd
commit 6bb72cc28c

View File

@ -320,7 +320,8 @@ bool ViewSourceWidget::eventFilter(QObject * obj, QEvent * ev)
goToCursor();
return true;
}
if (ev->type() == QEvent::ApplicationPaletteChange) {
if (ev->type() == QEvent::ApplicationPaletteChange
|| ev->type() == QEvent::StyleChange) {
// mode switch: colors need to be updated
// and the highlighting redone
if (highlighter_) {