TextEditor: Use correct format for auto complete highlight

Change-Id: Icb9800a286417077985ad9c0acedeb9b06b456cc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2017-07-03 09:22:08 +02:00
parent f870446677
commit 6e51fd2a0c

View File

@@ -978,7 +978,7 @@ int TextEditorWidgetPrivate::visualIndent(const QTextBlock &block) const
void TextEditorWidgetPrivate::updateAutoCompleteHighlight()
{
const QTextCharFormat &matchFormat
= q->textDocument()->fontSettings().toTextCharFormat(C_PARENTHESES);
= q->textDocument()->fontSettings().toTextCharFormat(C_AUTOCOMPLETE);
QList<QTextEdit::ExtraSelection> extraSelections;
for (QTextCursor cursor : Utils::asConst(m_autoCompleteHighlightPos)) {