MCPcopy Create free account
hub / github.com/MultiMC/Launcher / items

Method items

launcher/ui/instanceview/VisualGroup.cpp:305–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305QList<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}

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