mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
show messages from core/net thread
This commit is contained in:
parent
352083cb23
commit
467c31ea0a
8 changed files with 163 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue