MCPcopy Create free account
hub / github.com/ElementsProject/elements / formatTxAmount

Method formatTxAmount

src/qt/transactiontablemodel.cpp:460–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460QString 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
473QVariant TransactionTableModel::txStatusDecoration(const TransactionRecord *wtx) const
474{

Callers

nothing calls this directly

Calls 3

formatAssetAmountFunction · 0.85
getDisplayUnitMethod · 0.80
getOptionsModelMethod · 0.45

Tested by

no test coverage detected