forked from qt-creator/qt-creator
TextEditor: Use correct format for auto complete highlight
Change-Id: Icb9800a286417077985ad9c0acedeb9b06b456cc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -978,7 +978,7 @@ int TextEditorWidgetPrivate::visualIndent(const QTextBlock &block) const
|
|||||||
void TextEditorWidgetPrivate::updateAutoCompleteHighlight()
|
void TextEditorWidgetPrivate::updateAutoCompleteHighlight()
|
||||||
{
|
{
|
||||||
const QTextCharFormat &matchFormat
|
const QTextCharFormat &matchFormat
|
||||||
= q->textDocument()->fontSettings().toTextCharFormat(C_PARENTHESES);
|
= q->textDocument()->fontSettings().toTextCharFormat(C_AUTOCOMPLETE);
|
||||||
|
|
||||||
QList<QTextEdit::ExtraSelection> extraSelections;
|
QList<QTextEdit::ExtraSelection> extraSelections;
|
||||||
for (QTextCursor cursor : Utils::asConst(m_autoCompleteHighlightPos)) {
|
for (QTextCursor cursor : Utils::asConst(m_autoCompleteHighlightPos)) {
|
||||||
|
Reference in New Issue
Block a user