forked from qt-creator/qt-creator
CppEditor: Fix semantic highlighting when zooming
...for the not visible documents. First reset the extra additional formats, then set the new ones, not the other way around. Task-number: QTCREATORBUG-14579 Change-Id: Iae465bd9a7bb0a397fd4917df45955713aaf87c5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -73,12 +73,11 @@ public:
|
||||
~SemanticHighlighter();
|
||||
|
||||
void setHighlightingRunner(HighlightingRunner highlightingRunner);
|
||||
void updateFormatMapFromFontSettings();
|
||||
|
||||
void run();
|
||||
|
||||
private slots:
|
||||
void onDocumentFontSettingsChanged();
|
||||
|
||||
void onHighlighterResultAvailable(int from, int to);
|
||||
void onHighlighterFinished();
|
||||
|
||||
@@ -87,7 +86,6 @@ private:
|
||||
void disconnectWatcher();
|
||||
|
||||
unsigned documentRevision() const;
|
||||
void updateFormatMapFromFontSettings();
|
||||
|
||||
private:
|
||||
TextEditor::TextDocument *m_baseTextDocument;
|
||||
|
||||
Reference in New Issue
Block a user