transactionview: add message() signal
- allow to use message() in transactionview by connecting to the message() signal in WalletView
This commit is contained in:
parent
033ffc4377
commit
868d3ee5ac
2 changed files with 6 additions and 1 deletions
|
@ -71,6 +71,9 @@ private slots:
|
|||
signals:
|
||||
void doubleClicked(const QModelIndex&);
|
||||
|
||||
/** Fired when a message should be reported to the user */
|
||||
void message(const QString &title, const QString &message, unsigned int style);
|
||||
|
||||
public slots:
|
||||
void chooseDate(int idx);
|
||||
void chooseType(int idx);
|
||||
|
|
|
@ -67,6 +67,8 @@ WalletView::WalletView(QWidget *parent):
|
|||
|
||||
// Pass through messages from sendCoinsPage
|
||||
connect(sendCoinsPage, SIGNAL(message(QString,QString,unsigned int)), this, SIGNAL(message(QString,QString,unsigned int)));
|
||||
// Pass through messages from transactionView
|
||||
connect(transactionView, SIGNAL(message(QString,QString,unsigned int)), this, SIGNAL(message(QString,QString,unsigned int)));
|
||||
}
|
||||
|
||||
WalletView::~WalletView()
|
||||
|
@ -110,7 +112,7 @@ void WalletView::setWalletModel(WalletModel *walletModel)
|
|||
|
||||
if (walletModel)
|
||||
{
|
||||
// Receive and report messages from wallet thread
|
||||
// Receive and pass through messages from wallet model
|
||||
connect(walletModel, SIGNAL(message(QString,QString,unsigned int)), this, SIGNAL(message(QString,QString,unsigned int)));
|
||||
|
||||
// Handle changes in encryption status
|
||||
|
|
Loading…
Reference in a new issue