| 416 | } |
| 417 | |
| 418 | QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const |
| 419 | { |
| 420 | // Show addresses without label in a less visible color |
| 421 | switch(wtx->type) |
| 422 | { |
| 423 | case TransactionRecord::RecvWithAddress: |
| 424 | case TransactionRecord::SendToAddress: |
| 425 | case TransactionRecord::Generated: |
| 426 | { |
| 427 | QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(wtx->address)); |
| 428 | if(label.isEmpty()) |
| 429 | return COLOR_BAREADDRESS; |
| 430 | } break; |
| 431 | case TransactionRecord::SendToSelf: |
| 432 | return COLOR_BAREADDRESS; |
| 433 | default: |
| 434 | break; |
| 435 | } |
| 436 | return QVariant(); |
| 437 | } |
| 438 | |
| 439 | QString TransactionTableModel::formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed, BitcoinUnits::SeparatorStyle separators) const |
| 440 | { |
nothing calls this directly
no test coverage detected