TextEditor: fix updating completions after cursor navigation

Notify the assistant that something has changed after cursor movement
shortcuts.

Task-number: QTCREATORBUG-24077
Fixes: QTCREATORBUG-24071
Change-Id: Ic956c08140c47a8edc9603227008062a7ab95fa0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2020-06-10 11:00:40 +02:00
parent 443f2bae50
commit bd432c2c8a

View File

@@ -641,7 +641,10 @@ bool GenericProposalWidget::eventFilter(QObject *o, QEvent *e)
case Qt::Key_End:
case Qt::Key_Backspace:
// We want these navigation keys to work in the editor.
break;
QApplication::sendEvent(const_cast<QWidget *>(d->m_underlyingWidget), e);
if (isVisible())
d->m_assistant->notifyChange();
return true;
default:
// Only forward keys that insert text and refine the completion.