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

Method onSelectionChanged

launcher/ui/pages/instance/ModFolderPage.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool ModFolderPage::onSelectionChanged(const QModelIndex& current, const QModelIndex& previous)
134{
135 auto sourceCurrent = m_filterModel->mapToSource(current);
136 int row = sourceCurrent.row();
137 Mod const* m = m_model->at(row);
138 if (m)
139 ui->frame->updateWithMod(*m);
140
141 return true;
142}
143
144void ModFolderPage::removeItem()
145{

Callers

nothing calls this directly

Calls 3

mapToSourceMethod · 0.80
updateWithModMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected