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

Method index

launcher/InstanceList.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117QModelIndex InstanceList::index(int row, int column, const QModelIndex &parent) const
118{
119 Q_UNUSED(parent);
120 if (row < 0 || row >= m_instances.size())
121 return QModelIndex();
122 return createIndex(row, column, (void *)m_instances.at(row).get());
123}
124
125QVariant InstanceList::data(const QModelIndex &index, int role) const
126{

Callers 15

filterAcceptsRowMethod · 0.45
filterAcceptsRowMethod · 0.45
lessThanMethod · 0.45
preselectMethod · 0.45
updateGeometriesMethod · 0.45
paintEventMethod · 0.45
indexAtMethod · 0.45
setSelectionMethod · 0.45
cellAtMethod · 0.45
selectRowMethod · 0.45

Calls 4

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

Tested by

no test coverage detected