From 9d8b8ba65d94c72c06d1f9dcdbef05f3f5da1662 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Mon, 3 Jul 2017 14:25:47 +0200 Subject: [PATCH] TextEditor: Animate automatically completed text Change-Id: I35a183821363a201a68200f8692bf18dd36faed7 Reviewed-by: Christian Stenger --- src/plugins/texteditor/texteditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 0e64e0c61ff..6ba536f9b63 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -6316,7 +6316,8 @@ void TextEditorWidgetPrivate::autocompleterHighlight(const QTextCursor &cursor) m_autoCompleteHighlightPos.clear(); } else if (m_highlightAutoComplete) { m_autoCompleteHighlightPos.push_back(cursor); - } else if (m_animateAutoComplete) { + } + if (m_animateAutoComplete) { const QTextCharFormat &matchFormat = q->textDocument()->fontSettings().toTextCharFormat(C_AUTOCOMPLETE); cancelCurrentAnimations();// one animation is enough