MCPcopy Create free account
hub / github.com/IENT/YUView / toString

Function toString

YUViewLib/src/statistics/CustomColorMapStorage.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61QString toString(const ColorMap &colorMap)
62{
63 QString str;
64 for (const auto &color : colorMap)
65 str += QString("%1,%2|").arg(color.first).arg(QString::fromStdString(color.second.toHex()));
66 if (str.size() > 0 && str.endsWith("|"))
67 str.chop(1);
68 return str;
69}
70
71std::vector<CustomColorMap> loadFromSettings()
72{

Callers 2

storeToSettingsFunction · 0.85
indexOfColorMapMethod · 0.85

Calls 2

toHexMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected