|
|
|
@ -56,6 +56,9 @@ WalletView::WalletView(const PlatformStyle *platformStyle, QWidget *parent):
@@ -56,6 +56,9 @@ WalletView::WalletView(const PlatformStyle *platformStyle, QWidget *parent):
|
|
|
|
|
receiveCoinsPage = new ReceiveCoinsDialog(platformStyle); |
|
|
|
|
sendCoinsPage = new SendCoinsDialog(platformStyle); |
|
|
|
|
|
|
|
|
|
usedSendingAddressesPage = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::SendingTab, this); |
|
|
|
|
usedReceivingAddressesPage = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::ReceivingTab, this); |
|
|
|
|
|
|
|
|
|
addWidget(overviewPage); |
|
|
|
|
addWidget(transactionsPage); |
|
|
|
|
addWidget(receiveCoinsPage); |
|
|
|
@ -115,6 +118,8 @@ void WalletView::setWalletModel(WalletModel *walletModel)
@@ -115,6 +118,8 @@ void WalletView::setWalletModel(WalletModel *walletModel)
|
|
|
|
|
overviewPage->setWalletModel(walletModel); |
|
|
|
|
receiveCoinsPage->setModel(walletModel); |
|
|
|
|
sendCoinsPage->setModel(walletModel); |
|
|
|
|
usedReceivingAddressesPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
|
usedSendingAddressesPage->setModel(walletModel->getAddressTableModel()); |
|
|
|
|
|
|
|
|
|
if (walletModel) |
|
|
|
|
{ |
|
|
|
@ -273,20 +278,20 @@ void WalletView::usedSendingAddresses()
@@ -273,20 +278,20 @@ void WalletView::usedSendingAddresses()
|
|
|
|
|
{ |
|
|
|
|
if(!walletModel) |
|
|
|
|
return; |
|
|
|
|
AddressBookPage *dlg = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::SendingTab, this); |
|
|
|
|
dlg->setAttribute(Qt::WA_DeleteOnClose); |
|
|
|
|
dlg->setModel(walletModel->getAddressTableModel()); |
|
|
|
|
dlg->show(); |
|
|
|
|
|
|
|
|
|
usedSendingAddressesPage->show(); |
|
|
|
|
usedSendingAddressesPage->raise(); |
|
|
|
|
usedSendingAddressesPage->activateWindow(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void WalletView::usedReceivingAddresses() |
|
|
|
|
{ |
|
|
|
|
if(!walletModel) |
|
|
|
|
return; |
|
|
|
|
AddressBookPage *dlg = new AddressBookPage(platformStyle, AddressBookPage::ForEditing, AddressBookPage::ReceivingTab, this); |
|
|
|
|
dlg->setAttribute(Qt::WA_DeleteOnClose); |
|
|
|
|
dlg->setModel(walletModel->getAddressTableModel()); |
|
|
|
|
dlg->show(); |
|
|
|
|
|
|
|
|
|
usedReceivingAddressesPage->show(); |
|
|
|
|
usedReceivingAddressesPage->raise(); |
|
|
|
|
usedReceivingAddressesPage->activateWindow(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void WalletView::showProgress(const QString &title, int nProgress) |
|
|
|
|