Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show All 27 Lines | WalletModel::WalletModel(std::unique_ptr<interfaces::Wallet> wallet, | ||||
interfaces::Node &node, | interfaces::Node &node, | ||||
const PlatformStyle *platformStyle, | const PlatformStyle *platformStyle, | ||||
OptionsModel *_optionsModel, QObject *parent) | OptionsModel *_optionsModel, QObject *parent) | ||||
: QObject(parent), m_wallet(std::move(wallet)), m_node(node), | : QObject(parent), m_wallet(std::move(wallet)), m_node(node), | ||||
optionsModel(_optionsModel), addressTableModel(0), | optionsModel(_optionsModel), addressTableModel(0), | ||||
transactionTableModel(0), recentRequestsTableModel(0), | transactionTableModel(0), recentRequestsTableModel(0), | ||||
cachedEncryptionStatus(Unencrypted), cachedNumBlocks(0) { | cachedEncryptionStatus(Unencrypted), cachedNumBlocks(0) { | ||||
fHaveWatchOnly = m_wallet->haveWatchOnly(); | fHaveWatchOnly = m_wallet->haveWatchOnly(); | ||||
fForceCheckBalanceChanged = false; | |||||
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, SIGNAL(timeout()), this, SLOT(pollBalanceChanged())); | ||||
pollTimer->start(MODEL_UPDATE_DELAY); | pollTimer->start(MODEL_UPDATE_DELAY); | ||||
▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines |