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