Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show All 33 Lines | : QObject(parent), m_wallet(std::move(wallet)), m_node(node), | ||||
cachedEncryptionStatus(Unencrypted), cachedNumBlocks(0) { | cachedEncryptionStatus(Unencrypted), cachedNumBlocks(0) { | ||||
fHaveWatchOnly = m_wallet->haveWatchOnly(); | fHaveWatchOnly = m_wallet->haveWatchOnly(); | ||||
addressTableModel = new AddressTableModel(this); | addressTableModel = new AddressTableModel(this); | ||||
transactionTableModel = new TransactionTableModel(platformStyle, this); | transactionTableModel = new TransactionTableModel(platformStyle, this); | ||||
recentRequestsTableModel = new RecentRequestsTableModel(this); | recentRequestsTableModel = new RecentRequestsTableModel(this); | ||||
// This timer will be fired repeatedly to update the balance | // This timer will be fired repeatedly to update the balance | ||||
pollTimer = new QTimer(this); | pollTimer = new QTimer(this); | ||||
connect(pollTimer, SIGNAL(timeout()), this, SLOT(pollBalanceChanged())); | connect(pollTimer, &QTimer::timeout, this, | ||||
&WalletModel::pollBalanceChanged); | |||||
pollTimer->start(MODEL_UPDATE_DELAY); | pollTimer->start(MODEL_UPDATE_DELAY); | ||||
subscribeToCoreSignals(); | subscribeToCoreSignals(); | ||||
} | } | ||||
WalletModel::~WalletModel() { | WalletModel::~WalletModel() { | ||||
unsubscribeFromCoreSignals(); | unsubscribeFromCoreSignals(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |