| 69 | auto matches = this->match(this->index(0, 4), Qt::DisplayRole, id, 1); |
| 70 | |
| 71 | foreach(const QModelIndex &index, matches) |
| 72 | { |
| 73 | if (id == this->data(this->index(index.row(), 4), Qt::DisplayRole)) |
| 74 | { |
| 75 | return index; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | return QModelIndex(); |
| 80 | } |