| 330 | } |
| 331 | |
| 332 | QList<QModelIndex> VisualGroup::items() const |
| 333 | { |
| 334 | QList<QModelIndex> indices; |
| 335 | for (int i = 0; i < view->model()->rowCount(); ++i) |
| 336 | { |
| 337 | const QModelIndex index = view->model()->index(i, 0); |
| 338 | if (index.data(InstanceViewRoles::GroupRole).toString() == text) |
| 339 | { |
| 340 | indices.append(index); |
| 341 | } |
| 342 | } |
| 343 | return indices; |
| 344 | } |