| 59 | } |
| 60 | |
| 61 | QString 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 | |
| 71 | std::vector<CustomColorMap> loadFromSettings() |
| 72 | { |
no test coverage detected