MCPcopy Create free account
hub / github.com/Tencent/libpag / ColorToQString

Function ColorToQString

exporter/src/utils/StringHelper.cpp:336–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336QString ColorToQString(pag::Color color) {
337 return QString("#%1%2%3")
338 .arg(color.red, 2, 16, QChar('0'))
339 .arg(color.green, 2, 16, QChar('0'))
340 .arg(color.blue, 2, 16, QChar('0'));
341}
342
343void EnsureStringSuffix(std::string& filePath, const std::string& suffix) {
344 if (filePath.size() >= suffix.size()) {

Callers 1

getBackgroundColorMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected