TextEditor: Disconnect highlighting from text editor content changes

The syntax highligher is connected to the content changes of the text
editor which is not very useful if the diagnostics been provided by
an asynchronous mechanism. So we add a setter to disconnect the changes
from the syntax highlighter.

Change-Id: Ied4b5fe34000b13bafb1aa177b89befe6620d4d7
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marco Bubke
2017-07-18 17:37:08 +02:00
parent 19cdb75a8a
commit b9b69bac33
2 changed files with 21 additions and 8 deletions

View File

@@ -70,6 +70,8 @@ public:
// Don't call in constructors of derived classes
virtual void setFontSettings(const TextEditor::FontSettings &fontSettings);
void setNoAutomaticHighlighting(bool noAutomatic);
public slots:
void rehighlight();
void rehighlightBlock(const QTextBlock &block);