forked from qt-creator/qt-creator
TextEditor: Animate automatically completed text
Change-Id: I35a183821363a201a68200f8692bf18dd36faed7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Stenger
parent
e7f5a379c6
commit
9d8b8ba65d
@@ -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
|
||||
|
Reference in New Issue
Block a user