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

Method index

launcher/VersionProxyModel.cpp:300–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex &parent) const
301{
302 // no trees here... shoo
303 if(parent.isValid())
304 {
305 return QModelIndex();
306 }
307 if(row < 0 || row >= sourceModel()->rowCount())
308 return QModelIndex();
309 if(column < 0 || column >= columnCount())
310 return QModelIndex();
311 return QAbstractItemModel::createIndex(row, column);
312}
313
314int VersionProxyModel::columnCount(const QModelIndex &parent) const
315{

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