MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / items

Method items

launcher/ui/instanceview/VisualGroup.cpp:332–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332QList<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}

Callers

nothing calls this directly

Calls 6

modelMethod · 0.80
appendMethod · 0.80
rowCountMethod · 0.45
indexMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected