| 102 | } |
| 103 | |
| 104 | QStringList stringArray(const QJsonValue &v) |
| 105 | { |
| 106 | QStringList out; |
| 107 | if (!v.isArray()) return out; |
| 108 | for (const auto &elem : v.toArray()) { |
| 109 | if (elem.isString()) out.append(elem.toString()); |
| 110 | } |
| 111 | return out; |
| 112 | } |
| 113 | |
| 114 | AgentConfig configFromMerged(const QJsonObject &obj) |
| 115 | { |
no test coverage detected