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

Method index

launcher/VersionProxyModel.cpp:257–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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