forked from qt-creator/qt-creator
Add common interface for text formats inside syntax highlighter
Change-Id: I87f64446161a57aea0896f68e4eafacef791969b Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -5645,6 +5645,12 @@ void BaseTextEditorWidget::setFontSettings(const TextEditor::FontSettings &fs)
|
||||
|
||||
slotUpdateExtraAreaWidth(); // Adjust to new font width
|
||||
updateCurrentLineHighlight(); // Make sure it takes the new color
|
||||
|
||||
SyntaxHighlighter *highlighter = baseTextDocument()->syntaxHighlighter();
|
||||
if (highlighter) {
|
||||
highlighter->setFontSettings(fs);
|
||||
highlighter->rehighlight();
|
||||
}
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::setTabSettings(const TabSettings &ts)
|
||||
|
||||
Reference in New Issue
Block a user