| 21 | } |
| 22 | |
| 23 | QVariant SearchResultModel::data(const QModelIndex &index, int role) const |
| 24 | { |
| 25 | if (auto item = findItem(index)) |
| 26 | return data(*item, role); |
| 27 | |
| 28 | QString group = findGroup(index); |
| 29 | if (!group.isEmpty()) |
| 30 | return data(group, role); |
| 31 | |
| 32 | return QVariant(); |
| 33 | } |
| 34 | |
| 35 | QModelIndex SearchResultModel::index(int row, int column, const QModelIndex &parent) const |
| 36 | { |
no test coverage detected