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

Method installIcon

launcher/icons/IconList.cpp:326–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void IconList::installIcon(const QString &file, const QString &name)
327{
328 QFileInfo fileinfo(file);
329 if(!fileinfo.isReadable() || !fileinfo.isFile())
330 return;
331
332 QString target = FS::PathCombine(getDirectory(), name);
333
334 QFile::copy(file, target);
335}
336
337bool IconList::iconFileExists(const QString &key) const
338{

Callers 1

importIconNowMethod · 0.80

Calls 2

PathCombineFunction · 0.85
copyClass · 0.85

Tested by

no test coverage detected