forked from qt-creator/qt-creator
SyntaxHighlighter: Remove using global fontSettings
Currently, default font settings are set inside the highlighter runner after creating a highlighter. It prevents to call TextEditorSettings::fontSettings() from non-main threads. Change-Id: I0c806f0f586c67749cb2964bebdf2bf3c58a5302 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Internal {
|
||||
HaskellHighlighter::HaskellHighlighter()
|
||||
{
|
||||
setDefaultTextFormatCategories();
|
||||
updateFormats(TextEditorSettings::fontSettings());
|
||||
}
|
||||
|
||||
void HaskellHighlighter::highlightBlock(const QString &text)
|
||||
|
||||
Reference in New Issue
Block a user