forked from qt-creator/qt-creator
TextEditor: Remove use of deprecated additionalFormats
Replace with formats Change-Id: I9a24c0ad138c378aed1c49a15b80b7f64edabe30 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
8932e0bcb4
commit
6afcf33f7a
@@ -165,8 +165,8 @@ void CppEditorDocument::applyFontSettings()
|
||||
// Clear all additional formats since they may have changed
|
||||
QTextBlock b = document()->firstBlock();
|
||||
while (b.isValid()) {
|
||||
QList<QTextLayout::FormatRange> noFormats;
|
||||
highlighter->setExtraAdditionalFormats(b, noFormats);
|
||||
QVector<QTextLayout::FormatRange> noFormats;
|
||||
highlighter->setExtraFormats(b, noFormats);
|
||||
b = b.next();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user