|
|
@ -217,19 +217,13 @@ void BitcoinGUI::setWalletModel(WalletModel *walletModel) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this->walletModel = walletModel; |
|
|
|
this->walletModel = walletModel; |
|
|
|
|
|
|
|
|
|
|
|
// Keep up to date with wallet
|
|
|
|
|
|
|
|
setBalance(walletModel->getBalance()); |
|
|
|
|
|
|
|
connect(walletModel, SIGNAL(balanceChanged(qint64)), this, SLOT(setBalance(qint64))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setNumTransactions(walletModel->getNumTransactions()); |
|
|
|
|
|
|
|
connect(walletModel, SIGNAL(numTransactionsChanged(int)), this, SLOT(setNumTransactions(int))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Report errors from wallet thread
|
|
|
|
// Report errors from wallet thread
|
|
|
|
connect(walletModel, SIGNAL(error(QString,QString)), this, SLOT(error(QString,QString))); |
|
|
|
connect(walletModel, SIGNAL(error(QString,QString)), this, SLOT(error(QString,QString))); |
|
|
|
|
|
|
|
|
|
|
|
// Put transaction list in tabs
|
|
|
|
// Put transaction list in tabs
|
|
|
|
transactionView->setModel(walletModel); |
|
|
|
transactionView->setModel(walletModel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overviewPage->setModel(walletModel); |
|
|
|
addressBookPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
addressBookPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
receiveCoinsPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
receiveCoinsPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
sendCoinsPage->setModel(walletModel); |
|
|
|
sendCoinsPage->setModel(walletModel); |
|
|
@ -280,11 +274,6 @@ void BitcoinGUI::aboutClicked() |
|
|
|
dlg.exec(); |
|
|
|
dlg.exec(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::setBalance(qint64 balance) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
overviewPage->setBalance(balance); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::setNumConnections(int count) |
|
|
|
void BitcoinGUI::setNumConnections(int count) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString icon; |
|
|
|
QString icon; |
|
|
@ -346,11 +335,6 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
.arg(QLocale::system().toString(lastBlockDate))); |
|
|
|
.arg(QLocale::system().toString(lastBlockDate))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::setNumTransactions(int count) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
overviewPage->setNumTransactions(count); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::error(const QString &title, const QString &message) |
|
|
|
void BitcoinGUI::error(const QString &title, const QString &message) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Report errors from network/worker thread
|
|
|
|
// Report errors from network/worker thread
|
|
|
|