| 303 | } |
| 304 | |
| 305 | QList<QModelIndex> VisualGroup::items() const |
| 306 | { |
| 307 | QList<QModelIndex> indices; |
| 308 | for (int i = 0; i < view->model()->rowCount(); ++i) |
| 309 | { |
| 310 | const QModelIndex index = view->model()->index(i, 0); |
| 311 | if (index.data(InstanceViewRoles::GroupRole).toString() == text) |
| 312 | { |
| 313 | indices.append(index); |
| 314 | } |
| 315 | } |
| 316 | return indices; |
| 317 | } |