From 7d4d57165c7931ddcad613c4d0a5b3cba3cf859d Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 12 Aug 2020 11:38:46 +0200 Subject: [PATCH] Editor: Update current argument in function hint Notify the codeassistant that something has changed when the function hint widget is visible and a key was released. Fixes: QTCREATORBUG-24449 Change-Id: Iab6c6a13fd91485b077fbd1a812a16e32d558596 Reviewed-by: Christian Stenger --- .../texteditor/codeassist/functionhintproposalwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp b/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp index 6abdeff6087..292c46ccccf 100644 --- a/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp +++ b/src/plugins/texteditor/codeassist/functionhintproposalwidget.cpp @@ -292,6 +292,8 @@ bool FunctionHintProposalWidget::eventFilter(QObject *obj, QEvent *e) if (d->m_model && d->m_model->size() > 1) return false; } + if (QTC_GUARD(d->m_assistant)) + d->m_assistant->notifyChange(); } break; case QEvent::WindowDeactivate: