diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-04-08 08:25:01 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-04-08 08:25:01 -0700 |
commit | cf03a5ce8a8ab95944c7bd6fbddab3d7465ee374 (patch) | |
tree | 5ceecbfe0e0b2e94a6cf63d0bd126cc111afa39b /src | |
parent | 70c71a6a2a08747828a6419ef0fa4e6315e48ce6 (diff) | |
parent | 7e600cd92d2e6991afe26b19d9ad576a251350b9 (diff) |
Merge pull request #2481 from laanwj/2013_04_cleanup
qt: remove redundant wallet methods from bitcoingui
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/bitcoingui.cpp | 35 | ||||
-rw-r--r-- | src/qt/bitcoingui.h | 8 |
2 files changed, 8 insertions, 35 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 9da5b85006..7959723416 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -77,10 +77,15 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) : setUnifiedTitleAndToolBarOnMac(true); QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); #endif + // Create wallet frame and make it the central widget + walletFrame = new WalletFrame(this); + setCentralWidget(walletFrame); + // Accept D&D of URIs setAcceptDrops(true); // Create actions for the toolbar, menu bar and tray/dock icon + // Needs walletFrame to be initialized createActions(); // Create application menu bar @@ -92,10 +97,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent) : // Create system tray icon and notification createTrayIcon(); - // Create wallet frame and make it the central widget - walletFrame = new WalletFrame(this); - setCentralWidget(walletFrame); - // Create status bar statusBar(); @@ -246,9 +247,9 @@ void BitcoinGUI::createActions() connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked())); connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden())); - connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool))); - connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet())); - connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase())); + connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool))); + connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet())); + connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase())); connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab())); connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab())); } @@ -794,26 +795,6 @@ void BitcoinGUI::setEncryptionStatus(int status) } } -void BitcoinGUI::encryptWallet(bool status) -{ - walletFrame->encryptWallet(status); -} - -void BitcoinGUI::backupWallet() -{ - walletFrame->backupWallet(); -} - -void BitcoinGUI::changePassphrase() -{ - walletFrame->changePassphrase(); -} - -void BitcoinGUI::unlockWallet() -{ - walletFrame->unlockWallet(); -} - void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { // activateWindow() (sometimes) helps with keyboard focus on Windows diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index c59cf3c5e5..5f7ef746f9 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -187,14 +187,6 @@ private slots: /** Handle tray icon clicked */ void trayIconActivated(QSystemTrayIcon::ActivationReason reason); #endif - /** Encrypt the wallet */ - void encryptWallet(bool status); - /** Backup the wallet */ - void backupWallet(); - /** Change encrypted wallet passphrase */ - void changePassphrase(); - /** Ask for passphrase to unlock wallet temporarily */ - void unlockWallet(); /** Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true */ void showNormalIfMinimized(bool fToggleHidden = false); |