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

Method mapFromSource

launcher/VersionProxyModel.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244QModelIndex VersionProxyModel::mapFromSource(const QModelIndex &sourceIndex) const
245{
246 if(sourceIndex.isValid())
247 {
248 return index(sourceIndex.row(), 0);
249 }
250 return QModelIndex();
251}
252
253QModelIndex VersionProxyModel::mapToSource(const QModelIndex &proxyIndex) const
254{

Callers 4

openedImplMethod · 0.80
selectPageMethod · 0.80
ExportInstanceDialogMethod · 0.80

Calls 2

QModelIndexClass · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected