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

Method logoLoaded

launcher/ui/pages/modplatform/ModModel.cpp:203–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201/******** Request callbacks ********/
202
203void ListModel::logoLoaded(QString logo, QIcon out)
204{
205 m_loadingLogos.removeAll(logo);
206 m_logoMap.insert(logo, out);
207 for (int i = 0; i < modpacks.size(); i++) {
208 if (modpacks[i].logoName == logo) {
209 emit dataChanged(createIndex(i, 0), createIndex(i, 0), { Qt::DecorationRole });
210 }
211 }
212}
213
214void ListModel::logoFailed(QString logo)
215{

Callers

nothing calls this directly

Calls 2

insertMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected