qt: clean up signal handling in walletframe/walletview

Use proper signals everywhere.
Removes the need to store a pointer to the BitcoinGUI object in
the walletview.
Also removes the interdependence between setWalletModel / setBitcoinGUI.
This commit is contained in:
Wladimir J. van der Laan
2013-10-25 16:10:43 +02:00
parent 0d09b3e8b0
commit 7d16bb3874
4 changed files with 37 additions and 43 deletions

View File

@@ -62,7 +62,7 @@ bool WalletFrame::setCurrentWallet(const QString& name)
WalletView *walletView = mapWalletViews.value(name);
walletStack->setCurrentWidget(walletView);
walletView->setEncryptionStatus();
walletView->updateEncryptionStatus();
return true;
}
@@ -171,13 +171,6 @@ void WalletFrame::unlockWallet()
walletView->unlockWallet();
}
void WalletFrame::setEncryptionStatus()
{
WalletView *walletView = (WalletView*)walletStack->currentWidget();
if (walletView)
walletView->setEncryptionStatus();
}
void WalletFrame::usedSendingAddresses()
{
WalletView *walletView = (WalletView*)walletStack->currentWidget();