aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-26 19:12:29 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-30 22:43:00 +0100
commit868d3ee5acf0c0a481466c70eba3e8d142537d14 (patch)
tree8159e3091bd78039924924dc635b3c92a66bfb96 /src
parent033ffc4377f009d6b7529bf30591287b50d773df (diff)
transactionview: add message() signal
- allow to use message() in transactionview by connecting to the message() signal in WalletView
Diffstat (limited to 'src')
-rw-r--r--src/qt/transactionview.h3
-rw-r--r--src/qt/walletview.cpp4
2 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/transactionview.h b/src/qt/transactionview.h
index bb41a83e32..464ba3e8ce 100644
--- a/src/qt/transactionview.h
+++ b/src/qt/transactionview.h
@@ -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);
diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp
index 5622fcfb17..d1e5e47bd5 100644
--- a/src/qt/walletview.cpp
+++ b/src/qt/walletview.cpp
@@ -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