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:
Orgad Shaneh
2016-08-03 23:09:08 +03:00
committed by Orgad Shaneh
parent 8932e0bcb4
commit 6afcf33f7a
7 changed files with 32 additions and 32 deletions

View File

@@ -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();
}
}