| 257 | } |
| 258 | |
| 259 | QList<QModelIndex> VisualGroup::items() const |
| 260 | { |
| 261 | QList<QModelIndex> indices; |
| 262 | for (int i = 0; i < view->model()->rowCount(); ++i) { |
| 263 | const QModelIndex index = view->model()->index(i, 0); |
| 264 | if (index.data(InstanceViewRoles::GroupRole).toString() == text) { |
| 265 | indices.append(index); |
| 266 | } |
| 267 | } |
| 268 | return indices; |
| 269 | } |