Look up address in address book, if found return label (address) otherwise just return (address) */
| 325 | otherwise just return (address) |
| 326 | */ |
| 327 | QString TransactionTableModel::lookupAddress(const std::string &address, bool tooltip) const |
| 328 | { |
| 329 | QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(address)); |
| 330 | QString description; |
| 331 | if(!label.isEmpty()) |
| 332 | { |
| 333 | description += label; |
| 334 | } |
| 335 | if(label.isEmpty() || tooltip) |
| 336 | { |
| 337 | description += QString(" (") + QString::fromStdString(address) + QString(")"); |
| 338 | } |
| 339 | return description; |
| 340 | } |
| 341 | |
| 342 | QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const |
| 343 | { |
nothing calls this directly
no test coverage detected