forked from qt-creator/qt-creator
Completion: Complete prematuraly only if invoked explicitly
Change-Id: I941a94df2f8fb86f340ee04338641fe50c55e1b2 Reviewed-on: http://codereview.qt.nokia.com/45 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
committed by
Leandro T. C. Melo
parent
9e6f387bce
commit
99fee33fd1
@@ -552,6 +552,7 @@ bool GenericProposalWidget::eventFilter(QObject *o, QEvent *e)
|
|||||||
|
|
||||||
if (ke->text().length() == 1
|
if (ke->text().length() == 1
|
||||||
&& m_d->m_completionListView->currentIndex().isValid()
|
&& m_d->m_completionListView->currentIndex().isValid()
|
||||||
|
&& m_d->m_reason == ExplicitlyInvoked
|
||||||
&& qApp->focusWidget() == o) {
|
&& qApp->focusWidget() == o) {
|
||||||
const QChar &typedChar = ke->text().at(0);
|
const QChar &typedChar = ke->text().at(0);
|
||||||
IAssistProposalItem *item =
|
IAssistProposalItem *item =
|
||||||
|
|||||||
Reference in New Issue
Block a user