Merge pull request #6653

4dee609 Rename rpcconsole.ui => debugwindow.ui (MarcoFalke)
0d0a2d6 [Qt] Raise debug window when requested (MarcoFalke)
This commit is contained in:
Wladimir J. van der Laan 2015-09-23 17:44:58 +02:00
commit e04b2fa9ba
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
6 changed files with 17 additions and 8 deletions

View file

@ -11,7 +11,7 @@ FORMS += \
../src/qt/forms/overviewpage.ui \ ../src/qt/forms/overviewpage.ui \
../src/qt/forms/receivecoinsdialog.ui \ ../src/qt/forms/receivecoinsdialog.ui \
../src/qt/forms/receiverequestdialog.ui \ ../src/qt/forms/receiverequestdialog.ui \
../src/qt/forms/rpcconsole.ui \ ../src/qt/forms/debugwindow.ui \
../src/qt/forms/sendcoinsdialog.ui \ ../src/qt/forms/sendcoinsdialog.ui \
../src/qt/forms/sendcoinsentry.ui \ ../src/qt/forms/sendcoinsentry.ui \
../src/qt/forms/signverifymessagedialog.ui \ ../src/qt/forms/signverifymessagedialog.ui \

View file

@ -87,7 +87,7 @@ QT_FORMS_UI = \
qt/forms/overviewpage.ui \ qt/forms/overviewpage.ui \
qt/forms/receivecoinsdialog.ui \ qt/forms/receivecoinsdialog.ui \
qt/forms/receiverequestdialog.ui \ qt/forms/receiverequestdialog.ui \
qt/forms/rpcconsole.ui \ qt/forms/debugwindow.ui \
qt/forms/sendcoinsdialog.ui \ qt/forms/sendcoinsdialog.ui \
qt/forms/sendcoinsentry.ui \ qt/forms/sendcoinsentry.ui \
qt/forms/signverifymessagedialog.ui \ qt/forms/signverifymessagedialog.ui \

View file

@ -215,11 +215,6 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
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);
@ -352,6 +347,10 @@ void BitcoinGUI::createActions()
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)
{ {
@ -590,6 +589,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->show(); helpMessageDialog->show();

View file

@ -196,6 +196,8 @@ private Q_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

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.h" #include "rpcconsole.h"
#include "ui_rpcconsole.h" #include "ui_debugwindow.h"
#include "bantablemodel.h" #include "bantablemodel.h"
#include "clientmodel.h" #include "clientmodel.h"