Browse Source

Merge #9500: [Qt][RPC] Autocomplete commands for 'help' command in debug console

6d8fe35 'help' rpc commands autocomplete (Andrew Chow)

Tree-SHA512: 289bc4fa16a1c0291262998caa18556f1c5aa89662c85528606dc03b596b8833a0fb2c5c9c068b6dcf2adb3a136d4f154591d4a95b8c3313638b77355aaed955
0.15
Jonas Schnelli 8 years ago
parent
commit
3568b30ca3
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D
  1. 3
      src/qt/rpcconsole.cpp

3
src/qt/rpcconsole.cpp

@ -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…
Cancel
Save