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

Method mapToSource

launcher/VersionProxyModel.cpp:253–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253QModelIndex VersionProxyModel::mapToSource(const QModelIndex &proxyIndex) const
254{
255 if(proxyIndex.isValid())
256 {
257 return sourceModel()->index(proxyIndex.row(), 0);
258 }
259 return QModelIndex();
260}
261
262QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex &parent) const
263{

Callers 3

modCurrentMethod · 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