[Qt] add shortcurts for debug-/console-window
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <QProgressBar>
|
||||
#include <QProgressDialog>
|
||||
#include <QSettings>
|
||||
#include <QShortcut>
|
||||
#include <QStackedWidget>
|
||||
#include <QStatusBar>
|
||||
#include <QStyle>
|
||||
@@ -364,6 +365,9 @@ void BitcoinGUI::createActions()
|
||||
connect(openAction, SIGNAL(triggered()), this, SLOT(openClicked()));
|
||||
}
|
||||
#endif // ENABLE_WALLET
|
||||
|
||||
new QShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_C), this, SLOT(showDebugWindowActivateConsole()));
|
||||
new QShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_D), this, SLOT(showDebugWindow()));
|
||||
}
|
||||
|
||||
void BitcoinGUI::createMenuBar()
|
||||
@@ -597,6 +601,12 @@ void BitcoinGUI::showDebugWindow()
|
||||
rpcConsole->activateWindow();
|
||||
}
|
||||
|
||||
void BitcoinGUI::showDebugWindowActivateConsole()
|
||||
{
|
||||
rpcConsole->setTabFocus(RPCConsole::TAB_CONSOLE);
|
||||
showDebugWindow();
|
||||
}
|
||||
|
||||
void BitcoinGUI::showHelpMessageClicked()
|
||||
{
|
||||
helpMessageDialog->show();
|
||||
|
||||
Reference in New Issue
Block a user