'help' rpc commands autocomplete
Adds autocompletion of the commands for when getting the help of a command by using `help <command>`
This commit is contained in:
parent
07fd147b9f
commit
6d8fe35b94
1 changed files with 3 additions and 0 deletions
|
@ -626,9 +626,12 @@ void RPCConsole::setClientModel(ClientModel *model)
|
||||||
for (size_t i = 0; i < commandList.size(); ++i)
|
for (size_t i = 0; i < commandList.size(); ++i)
|
||||||
{
|
{
|
||||||
wordList << commandList[i].c_str();
|
wordList << commandList[i].c_str();
|
||||||
|
wordList << ("help " + commandList[i]).c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wordList.sort();
|
||||||
autoCompleter = new QCompleter(wordList, this);
|
autoCompleter = new QCompleter(wordList, this);
|
||||||
|
autoCompleter->setModelSorting(QCompleter::CaseSensitivelySortedModel);
|
||||||
ui->lineEdit->setCompleter(autoCompleter);
|
ui->lineEdit->setCompleter(autoCompleter);
|
||||||
autoCompleter->popup()->installEventFilter(this);
|
autoCompleter->popup()->installEventFilter(this);
|
||||||
// Start thread to execute RPC commands.
|
// Start thread to execute RPC commands.
|
||||||
|
|
Loading…
Reference in a new issue