Browse Source

transactionview: add message() signal

- allow to use message() in transactionview by connecting to the
  message() signal in WalletView
0.10
Philip Kaufmann 11 years ago
parent
commit
868d3ee5ac
  1. 3
      src/qt/transactionview.h
  2. 4
      src/qt/walletview.cpp

3
src/qt/transactionview.h

@ -71,6 +71,9 @@ private slots: @@ -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);

4
src/qt/walletview.cpp

@ -67,6 +67,8 @@ WalletView::WalletView(QWidget *parent): @@ -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) @@ -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…
Cancel
Save