mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
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
@ -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 New Issue
Block a user