| 217 | }; |
| 218 | |
| 219 | TransactionTableModel::TransactionTableModel(const PlatformStyle *_platformStyle, WalletModel *parent): |
| 220 | QAbstractTableModel(parent), |
| 221 | walletModel(parent), |
| 222 | priv(new TransactionTablePriv(this)), |
| 223 | fProcessingQueuedTransactions(false), |
| 224 | platformStyle(_platformStyle) |
| 225 | { |
| 226 | columns << QString() << QString() << tr("Date") << tr("Type") << tr("Label") << BitcoinUnits::getAmountColumnTitle(walletModel->getOptionsModel()->getDisplayUnit()); |
| 227 | priv->refreshWallet(walletModel->wallet()); |
| 228 | |
| 229 | connect(walletModel->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); |
| 230 | |
| 231 | subscribeToCoreSignals(); |
| 232 | } |
| 233 | |
| 234 | TransactionTableModel::~TransactionTableModel() |
| 235 | { |
nothing calls this directly
no test coverage detected