mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-06 04:59:20 +01:00
show messages from core/net thread
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
#include "guiconstants.h"
|
||||
#include "optionsmodel.h"
|
||||
#include "addresstablemodel.h"
|
||||
#include "transactiontablemodel.h"
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
ClientModel::ClientModel(QObject *parent) :
|
||||
QObject(parent), optionsModel(0), addressTableModel(0)
|
||||
QObject(parent), optionsModel(0), addressTableModel(0),
|
||||
transactionTableModel(0)
|
||||
{
|
||||
/* Until signal notifications is built into the bitcoin core,
|
||||
simply update everything after polling using a timer.
|
||||
@@ -18,6 +20,7 @@ ClientModel::ClientModel(QObject *parent) :
|
||||
|
||||
optionsModel = new OptionsModel(this);
|
||||
addressTableModel = new AddressTableModel(this);
|
||||
transactionTableModel = new TransactionTableModel(this);
|
||||
}
|
||||
|
||||
qint64 ClientModel::getBalance()
|
||||
@@ -140,3 +143,8 @@ AddressTableModel *ClientModel::getAddressTableModel()
|
||||
{
|
||||
return addressTableModel;
|
||||
}
|
||||
|
||||
TransactionTableModel *ClientModel::getTransactionTableModel()
|
||||
{
|
||||
return transactionTableModel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user