| 458 | } |
| 459 | |
| 460 | QString TransactionTableModel::formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed, BitcoinUnits::SeparatorStyle separators) const |
| 461 | { |
| 462 | QString str = GUIUtil::formatAssetAmount(wtx->asset, wtx->amount, walletModel->getOptionsModel()->getDisplayUnit(), separators); |
| 463 | if(showUnconfirmed) |
| 464 | { |
| 465 | if(!wtx->status.countsForBalance) |
| 466 | { |
| 467 | str = QString("[") + str + QString("]"); |
| 468 | } |
| 469 | } |
| 470 | return QString(str); |
| 471 | } |
| 472 | |
| 473 | QVariant TransactionTableModel::txStatusDecoration(const TransactionRecord *wtx) const |
| 474 | { |
nothing calls this directly
no test coverage detected