Look up address in address book, if found return label (address) otherwise just return (address) */
| 352 | otherwise just return (address) |
| 353 | */ |
| 354 | QString TransactionTableModel::lookupAddress(const std::string &address, bool tooltip) const |
| 355 | { |
| 356 | QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(address)); |
| 357 | QString description; |
| 358 | if(!label.isEmpty()) |
| 359 | { |
| 360 | description += label; |
| 361 | } |
| 362 | if(label.isEmpty() || tooltip) |
| 363 | { |
| 364 | description += QString(" (") + QString::fromStdString(address) + QString(")"); |
| 365 | } |
| 366 | return description; |
| 367 | } |
| 368 | |
| 369 | QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const |
| 370 | { |
nothing calls this directly
no test coverage detected