| 392 | } |
| 393 | |
| 394 | int AddressTableModel::lookupAddress(const QString& address) const |
| 395 | { |
| 396 | QModelIndexList lst = match(index(0, Address, QModelIndex()), |
| 397 | Qt::EditRole, address, 1, Qt::MatchExactly); |
| 398 | if (lst.isEmpty()) { |
| 399 | return -1; |
| 400 | } else { |
| 401 | return lst.at(0).row(); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | void AddressTableModel::emitDataChanged(int idx) |
| 406 | { |
no test coverage detected