diff options
| author | João Barbosa <[email protected]> | 2019-04-05 16:20:57 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2019-10-02 01:28:16 +0100 |
| commit | 091747b46ecf06244ce2650028f1833b2e7c5062 (patch) | |
| tree | 08b60d9bf0f5f3b83d820d29383028d36349e181 /src/qt/rpcconsole.cpp | |
| parent | Merge #17002: chainparams: Bump assumed chain params (diff) | |
| download | discoin-091747b46ecf06244ce2650028f1833b2e7c5062.tar.xz discoin-091747b46ecf06244ce2650028f1833b2e7c5062.zip | |
gui: Add shortcuts for tab tools
Diffstat (limited to 'src/qt/rpcconsole.cpp')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index eccc34e12..4f6629bfe 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -1276,6 +1276,16 @@ QString RPCConsole::tabTitle(TabTypes tab_type) const return ui->tabWidget->tabText(tab_type); } +QKeySequence RPCConsole::tabShortcut(TabTypes tab_type) const +{ + switch (tab_type) { + case TAB_INFO: return QKeySequence(Qt::CTRL + Qt::Key_I); + case TAB_CONSOLE: return QKeySequence(Qt::CTRL + Qt::Key_T); + case TAB_GRAPH: return QKeySequence(Qt::CTRL + Qt::Key_N); + case TAB_PEERS: return QKeySequence(Qt::CTRL + Qt::Key_P); + } +} + void RPCConsole::updateAlerts(const QString& warnings) { this->ui->label_alerts->setVisible(!warnings.isEmpty()); |