mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
gui: Remove WalletView and BitcoinGUI circular dependency
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <qt/addressbookpage.h>
|
||||
#include <qt/askpassphrasedialog.h>
|
||||
#include <qt/bitcoingui.h>
|
||||
#include <qt/clientmodel.h>
|
||||
#include <qt/guiutil.h>
|
||||
#include <qt/optionsmodel.h>
|
||||
@@ -88,32 +87,6 @@ WalletView::~WalletView()
|
||||
{
|
||||
}
|
||||
|
||||
void WalletView::setBitcoinGUI(BitcoinGUI *gui)
|
||||
{
|
||||
if (gui)
|
||||
{
|
||||
// Clicking on a transaction on the overview page simply sends you to transaction history page
|
||||
connect(this, &WalletView::transactionClicked, gui, &BitcoinGUI::gotoHistoryPage);
|
||||
|
||||
// Navigate to transaction history page after send
|
||||
connect(this, &WalletView::coinsSent, gui, &BitcoinGUI::gotoHistoryPage);
|
||||
|
||||
// Receive and report messages
|
||||
connect(this, &WalletView::message, [gui](const QString &title, const QString &message, unsigned int style) {
|
||||
gui->message(title, message, style);
|
||||
});
|
||||
|
||||
// Pass through encryption status changed signals
|
||||
connect(this, &WalletView::encryptionStatusChanged, gui, &BitcoinGUI::updateWalletStatus);
|
||||
|
||||
// Pass through transaction notifications
|
||||
connect(this, &WalletView::incomingTransaction, gui, &BitcoinGUI::incomingTransaction);
|
||||
|
||||
// Connect HD enabled state signal
|
||||
connect(this, &WalletView::hdEnabledStatusChanged, gui, &BitcoinGUI::updateWalletStatus);
|
||||
}
|
||||
}
|
||||
|
||||
void WalletView::setClientModel(ClientModel *_clientModel)
|
||||
{
|
||||
this->clientModel = _clientModel;
|
||||
|
||||
Reference in New Issue
Block a user