Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | TransactionTableModel::TransactionTableModel( | ||||
: QAbstractTableModel(parent), walletModel(parent), | : QAbstractTableModel(parent), walletModel(parent), | ||||
priv(new TransactionTablePriv(this)), | priv(new TransactionTablePriv(this)), | ||||
fProcessingQueuedTransactions(false), platformStyle(_platformStyle) { | fProcessingQueuedTransactions(false), platformStyle(_platformStyle) { | ||||
columns << QString() << QString() << tr("Date") << tr("Type") << tr("Label") | columns << QString() << QString() << tr("Date") << tr("Type") << tr("Label") | ||||
<< BitcoinUnits::getAmountColumnTitle( | << BitcoinUnits::getAmountColumnTitle( | ||||
walletModel->getOptionsModel()->getDisplayUnit()); | walletModel->getOptionsModel()->getDisplayUnit()); | ||||
priv->refreshWallet(walletModel->wallet()); | priv->refreshWallet(walletModel->wallet()); | ||||
connect(walletModel->getOptionsModel(), SIGNAL(displayUnitChanged(int)), | connect(walletModel->getOptionsModel(), &OptionsModel::displayUnitChanged, | ||||
this, SLOT(updateDisplayUnit())); | this, &TransactionTableModel::updateDisplayUnit); | ||||
subscribeToCoreSignals(); | subscribeToCoreSignals(); | ||||
} | } | ||||
TransactionTableModel::~TransactionTableModel() { | TransactionTableModel::~TransactionTableModel() { | ||||
unsubscribeFromCoreSignals(); | unsubscribeFromCoreSignals(); | ||||
delete priv; | delete priv; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 540 Lines • Show Last 20 Lines |