| 80 | } |
| 81 | |
| 82 | QByteArray SettingsPrivate::toJson(const SettingData &data) |
| 83 | { |
| 84 | QJsonObject obj; |
| 85 | for (auto iter = data.values.constBegin(); iter != data.values.constEnd(); ++iter) { |
| 86 | const QString &key = iter.key(); |
| 87 | if (!syncGroupExclude.contains(key)) |
| 88 | obj.insert(key, QJsonValue(QJsonObject::fromVariantHash(iter.value()))); |
| 89 | } |
| 90 | |
| 91 | return QJsonDocument(obj).toJson(); |
| 92 | } |
| 93 | |
| 94 | void SettingsPrivate::enableSync(bool enable) |
| 95 | { |
no test coverage detected