| 433 | } |
| 434 | |
| 435 | int AddressTableModel::lookupAddress(const QString &address) const |
| 436 | { |
| 437 | QModelIndexList lst = match(index(0, Address, QModelIndex()), |
| 438 | Qt::EditRole, address, 1, Qt::MatchExactly); |
| 439 | if(lst.isEmpty()) |
| 440 | { |
| 441 | return -1; |
| 442 | } |
| 443 | else |
| 444 | { |
| 445 | return lst.at(0).row(); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | OutputType AddressTableModel::GetDefaultAddressType() const { return walletModel->wallet().getDefaultAddressType(); }; |
| 450 |
no test coverage detected