diff options
author | David Schulz <david.schulz@qt.io> | 2019-06-12 13:15:48 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2019-06-19 11:57:12 +0000 |
commit | cea75f3ac4359d9ea90fe682e20adca2619a6320 (patch) | |
tree | 3737d11d0259bb60fb13f99c9d4e978d616cfa08 /src/plugins/cppeditor/cppeditordocument.cpp | |
parent | aa94b6f0c823a21fbffe042cd12567851e710613 (diff) |
TextEditor: add convenience function to clear additional highlights
Change-Id: Ie3cf6e7f9fb37f3e2270abaf5fca412e7a4a40da
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditordocument.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditordocument.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppeditordocument.cpp b/src/plugins/cppeditor/cppeditordocument.cpp index f09e3807d3..c4af4b1559 100644 --- a/src/plugins/cppeditor/cppeditordocument.cpp +++ b/src/plugins/cppeditor/cppeditordocument.cpp @@ -180,8 +180,7 @@ void CppEditorDocument::applyFontSettings() // Clear all additional formats since they may have changed QTextBlock b = document()->firstBlock(); while (b.isValid()) { - QVector<QTextLayout::FormatRange> noFormats; - highlighter->setExtraFormats(b, noFormats); + highlighter->clearExtraFormats(b); b = b.next(); } } |