Clear the input line after activating autocomplete

This commit is contained in:
Pavel Janík 2016-03-30 20:26:10 +02:00
parent e8a8f3d4b2
commit ae2156f123
1 changed files with 2 additions and 0 deletions

View File

@ -459,6 +459,8 @@ void RPCConsole::setClientModel(ClientModel *model)
autoCompleter = new QCompleter(wordList, this);
ui->lineEdit->setCompleter(autoCompleter);
// clear the lineEdit after activating from QCompleter
connect(autoCompleter, SIGNAL(activated(const QString&)), ui->lineEdit, SLOT(clear()), Qt::QueuedConnection);
}
}