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

Method index

launcher/VersionProxyModel.cpp:262–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex &parent) const
263{
264 // no trees here... shoo
265 if(parent.isValid())
266 {
267 return QModelIndex();
268 }
269 if(row < 0 || row >= sourceModel()->rowCount())
270 return QModelIndex();
271 if(column < 0 || column >= columnCount())
272 return QModelIndex();
273 return QAbstractItemModel::createIndex(row, column);
274}
275
276int VersionProxyModel::columnCount(const QModelIndex &parent) const
277{

Callers 2

filterAcceptsRowMethod · 0.45
mapToSourceMethod · 0.45

Calls 3

QModelIndexClass · 0.85
isValidMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected