Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show All 27 Lines | |||||
#include <cstdint> | #include <cstdint> | ||||
WalletModel::WalletModel(std::unique_ptr<interfaces::Wallet> wallet, | 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(nullptr), | ||||
transactionTableModel(0), recentRequestsTableModel(0), | transactionTableModel(nullptr), recentRequestsTableModel(nullptr), | ||||
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); | ||||
▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines |