Utils: Don't filter HistoryLineEdit popup

... and make the list accessible on <Down> even if
the content of the line edit is not empty.

Change-Id: Ib9fdd379dd9c96e2e0ddf58d9f6e9ec3d4374527
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
hjk
2015-03-27 13:52:10 +01:00
parent 8fbe192124
commit f08af0d6db
2 changed files with 2 additions and 3 deletions

View File

@@ -63,10 +63,8 @@ void CompletingLineEdit::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Down && !e->modifiers()) {
if (QCompleter *comp = completer()) {
if (text().isEmpty() && !comp->popup()->isVisible()) {
comp->setCompletionPrefix(QString());
if (!comp->popup()->isVisible())
comp->complete();
}
}
}
return QLineEdit::keyPressEvent(e);