aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/texteditor.cpp')
-rw-r--r--src/plugins/texteditor/texteditor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp
index c7512b961b3..82bddcaac5e 100644
--- a/src/plugins/texteditor/texteditor.cpp
+++ b/src/plugins/texteditor/texteditor.cpp
@@ -2509,7 +2509,13 @@ bool TextEditorWidget::event(QEvent *e)
e->ignore(); // we are a really nice citizen
d->m_maybeFakeTooltipEvent = false;
return true;
- break;
+ case QEvent::ApplicationPaletteChange: {
+ // slight hack: ignore palette changes
+ // at this point the palette has changed already,
+ // so undo it by re-setting the palette:
+ applyFontSettings();
+ return true;
+ }
default:
break;
}