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

Method getLogo

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

Source from the content-addressed store, hash-verified

159}
160
161void ListModel::getLogo(const QString& logo, const QString& logoUrl, LogoCallback callback)
162{
163 if (m_logoMap.contains(logo)) {
164 callback(APPLICATION->metacache()
165 ->resolveEntry(m_parent->metaEntryBase(), QString("logos/%1").arg(logo.section(".", 0, 0)))
166 ->getFullPath());
167 } else {
168 requestLogo(logo, logoUrl);
169 }
170}
171
172void ListModel::requestLogo(QString logo, QString url)
173{

Callers

nothing calls this directly

Calls 6

QStringClass · 0.85
getFullPathMethod · 0.80
resolveEntryMethod · 0.80
metacacheMethod · 0.80
containsMethod · 0.45
metaEntryBaseMethod · 0.45

Tested by

no test coverage detected