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

Method saveIcon

launcher/icons/IconList.cpp:426–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void IconList::saveIcon(const QString &key, const QString &path, const char * format) const
427{
428 auto icon = getIcon(key);
429 auto pixmap = icon.pixmap(128, 128);
430 pixmap.save(path, format);
431}
432
433
434void IconList::reindex()

Callers 1

createLaunchTaskMethod · 0.80

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected