MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / index

Method index

launcher/VersionProxyModel.cpp:264–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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