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

Method onSelectionChanged

launcher/ui/pages/instance/ExternalResourcesPage.cpp:211–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211bool ExternalResourcesPage::onSelectionChanged(const QModelIndex& current, const QModelIndex& previous)
212{
213 auto sourceCurrent = m_filterModel->mapToSource(current);
214 int row = sourceCurrent.row();
215 Resource const& resource = m_model->at(row);
216 ui->frame->updateWithResource(resource);
217
218 return true;
219}
220

Callers

nothing calls this directly

Calls 3

mapToSourceMethod · 0.80
updateWithResourceMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected