KTextWidgets merge requestshttps://invent.kde.org/frameworks/ktextwidgets/-/merge_requests2023-07-13T12:42:32Zhttps://invent.kde.org/frameworks/ktextwidgets/-/merge_requests/42Always set language after highlighter creation2023-07-13T12:42:32ZKevin FunkAlways set language after highlighter creationBefore this patch, the spell-checking language was not set properly
after a focusInEvent in a read-write KTextEdit.
createHighlighter() is called in the following scenarios:
- When spell-checking gets enabled (via setCheckSpellingEnable...Before this patch, the spell-checking language was not set properly
after a focusInEvent in a read-write KTextEdit.
createHighlighter() is called in the following scenarios:
- When spell-checking gets enabled (via setCheckSpellingEnabled())
- When there is a focus-in-event
- When we set the text edit to read-write
We always need to (re-)apply the language after a new highlighter is set
up in these cases.