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

Method index

launcher/InstanceList.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138QModelIndex InstanceList::index(int row, int column, const QModelIndex& parent) const
139{
140 Q_UNUSED(parent);
141 if (row < 0 || row >= m_instances.size())
142 return QModelIndex();
143 return createIndex(row, column, (void*)m_instances.at(row).get());
144}
145
146QVariant InstanceList::data(const QModelIndex& index, int role) const
147{

Callers

nothing calls this directly

Calls 4

QModelIndexClass · 0.85
sizeMethod · 0.45
getMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected