mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-01 12:58:34 +01:00
[Qt] Raise debug window when requested
* Raise the debug window when hidden behind other windows * Switch to the debug window when on another virtual desktop * Show the debug window when minimized This change is a conceptual copy of5ffaabaand382e9e2
This commit is contained in:
@@ -207,11 +207,6 @@ BitcoinGUI::BitcoinGUI(const NetworkStyle *networkStyle, QWidget *parent) :
|
|||||||
statusBar()->addWidget(progressBar);
|
statusBar()->addWidget(progressBar);
|
||||||
statusBar()->addPermanentWidget(frameBlocks);
|
statusBar()->addPermanentWidget(frameBlocks);
|
||||||
|
|
||||||
connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show()));
|
|
||||||
|
|
||||||
// prevents an open debug window from becoming stuck/unusable on client shutdown
|
|
||||||
connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide()));
|
|
||||||
|
|
||||||
// Install event filter to be able to catch status tip events (QEvent::StatusTip)
|
// Install event filter to be able to catch status tip events (QEvent::StatusTip)
|
||||||
this->installEventFilter(this);
|
this->installEventFilter(this);
|
||||||
|
|
||||||
@@ -334,6 +329,10 @@ void BitcoinGUI::createActions(const NetworkStyle *networkStyle)
|
|||||||
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
|
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
|
||||||
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));
|
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));
|
||||||
connect(showHelpMessageAction, SIGNAL(triggered()), this, SLOT(showHelpMessageClicked()));
|
connect(showHelpMessageAction, SIGNAL(triggered()), this, SLOT(showHelpMessageClicked()));
|
||||||
|
connect(openRPCConsoleAction, SIGNAL(triggered()), this, SLOT(showDebugWindow()));
|
||||||
|
// prevents an open debug window from becoming stuck/unusable on client shutdown
|
||||||
|
connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide()));
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
if(walletFrame)
|
if(walletFrame)
|
||||||
{
|
{
|
||||||
@@ -569,6 +568,14 @@ void BitcoinGUI::aboutClicked()
|
|||||||
dlg.exec();
|
dlg.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BitcoinGUI::showDebugWindow()
|
||||||
|
{
|
||||||
|
rpcConsole->showNormal();
|
||||||
|
rpcConsole->show();
|
||||||
|
rpcConsole->raise();
|
||||||
|
rpcConsole->activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
void BitcoinGUI::showHelpMessageClicked()
|
void BitcoinGUI::showHelpMessageClicked()
|
||||||
{
|
{
|
||||||
HelpMessageDialog *help = new HelpMessageDialog(this, false);
|
HelpMessageDialog *help = new HelpMessageDialog(this, false);
|
||||||
|
|||||||
@@ -189,6 +189,8 @@ private slots:
|
|||||||
void optionsClicked();
|
void optionsClicked();
|
||||||
/** Show about dialog */
|
/** Show about dialog */
|
||||||
void aboutClicked();
|
void aboutClicked();
|
||||||
|
/** Show debug window */
|
||||||
|
void showDebugWindow();
|
||||||
/** Show help message dialog */
|
/** Show help message dialog */
|
||||||
void showHelpMessageClicked();
|
void showHelpMessageClicked();
|
||||||
#ifndef Q_OS_MAC
|
#ifndef Q_OS_MAC
|
||||||
|
|||||||
Reference in New Issue
Block a user