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

Method mapToSource

launcher/VersionProxyModel.cpp:291–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291QModelIndex VersionProxyModel::mapToSource(const QModelIndex &proxyIndex) const
292{
293 if(proxyIndex.isValid())
294 {
295 return sourceModel()->index(proxyIndex.row(), 0);
296 }
297 return QModelIndex();
298}
299
300QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex &parent) const
301{

Callers 6

onSelectionChangedMethod · 0.80
onSelectionChangedFunction · 0.80
onSelectionChangedFunction · 0.80
onSelectionChangedMethod · 0.80
getSelectedWorldMethod · 0.80
currentChangedMethod · 0.80

Calls 3

QModelIndexClass · 0.85
isValidMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected