MCPcopy Create free account
hub / github.com/comaps/comaps / CopyToResources

Function CopyToResources

qt/build_style/build_common.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void CopyToResources(QString const & name, QString const & input, QString const & newName)
69{
70 QString const resourceDir = GetPlatform().ResourcesDir().c_str();
71 if (!CopyFile(JoinPathQt({input, name}), JoinPathQt({resourceDir, newName.isEmpty() ? name : newName})))
72 throw std::runtime_error(std::string("Cannot copy file ") + name.toStdString() + " from " + input.toStdString());
73}
74
75QString JoinPathQt(std::initializer_list<QString> folders)
76{

Callers 1

ApplyDrawingRulesFunction · 0.85

Calls 3

CopyFileFunction · 0.85
JoinPathQtFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected