|
|
@ -373,7 +373,7 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel) |
|
|
|
connect(clientModel, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int))); |
|
|
|
connect(clientModel, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int))); |
|
|
|
|
|
|
|
|
|
|
|
// Receive and report messages from network/worker thread
|
|
|
|
// Receive and report messages from network/worker thread
|
|
|
|
connect(clientModel, SIGNAL(message(QString,QString,bool,unsigned int)), this, SLOT(message(QString,QString,bool,unsigned int))); |
|
|
|
connect(clientModel, SIGNAL(message(QString,QString,unsigned int)), this, SLOT(message(QString,QString,unsigned int))); |
|
|
|
|
|
|
|
|
|
|
|
overviewPage->setClientModel(clientModel); |
|
|
|
overviewPage->setClientModel(clientModel); |
|
|
|
rpcConsole->setClientModel(clientModel); |
|
|
|
rpcConsole->setClientModel(clientModel); |
|
|
@ -388,7 +388,7 @@ void BitcoinGUI::setWalletModel(WalletModel *walletModel) |
|
|
|
if(walletModel) |
|
|
|
if(walletModel) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Receive and report messages from wallet thread
|
|
|
|
// Receive and report messages from wallet thread
|
|
|
|
connect(walletModel, SIGNAL(message(QString,QString,bool,unsigned int)), this, SLOT(message(QString,QString,bool,unsigned int))); |
|
|
|
connect(walletModel, SIGNAL(message(QString,QString,unsigned int)), this, SLOT(message(QString,QString,unsigned int))); |
|
|
|
|
|
|
|
|
|
|
|
// Put transaction list in tabs
|
|
|
|
// Put transaction list in tabs
|
|
|
|
transactionView->setModel(walletModel); |
|
|
|
transactionView->setModel(walletModel); |
|
|
@ -606,7 +606,7 @@ void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks) |
|
|
|
progressBar->setToolTip(tooltip); |
|
|
|
progressBar->setToolTip(tooltip); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void BitcoinGUI::message(const QString &title, const QString &message, bool modal, unsigned int style) |
|
|
|
void BitcoinGUI::message(const QString &title, const QString &message, unsigned int style) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString strTitle = tr("Bitcoin") + " - "; |
|
|
|
QString strTitle = tr("Bitcoin") + " - "; |
|
|
|
// Default to information icon
|
|
|
|
// Default to information icon
|
|
|
@ -639,7 +639,7 @@ void BitcoinGUI::message(const QString &title, const QString &message, bool moda |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Display message
|
|
|
|
// Display message
|
|
|
|
if (modal) { |
|
|
|
if (style & CClientUIInterface::MODAL) { |
|
|
|
// Check for buttons, use OK as default, if none was supplied
|
|
|
|
// Check for buttons, use OK as default, if none was supplied
|
|
|
|
QMessageBox::StandardButton buttons; |
|
|
|
QMessageBox::StandardButton buttons; |
|
|
|
if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK))) |
|
|
|
if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK))) |
|
|
|