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

Function storeToSettings

YUViewLib/src/statistics/CustomColorMapStorage.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void storeToSettings(const std::vector<CustomColorMap> &colorMaps)
92{
93 QSettings settings;
94 settings.beginWriteArray("CustomColorMaps");
95 for (size_t i = 0; i < colorMaps.size(); ++i)
96 {
97 settings.setArrayIndex(int(i));
98 settings.setValue("name", colorMaps.at(i).name);
99 settings.setValue("colorMap", toString(colorMaps.at(i).colorMap));
100 settings.setValue("otherColor", QString::fromStdString(colorMaps.at(i).other.toHex()));
101 }
102 settings.endArray();
103}
104
105} // namespace
106

Callers 2

saveAndGetIndexMethod · 0.85
removeMethod · 0.85

Calls 4

toStringFunction · 0.85
toHexMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected