MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / toJson

Method toJson

src/common/settings/settings.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82QByteArray 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
94void SettingsPrivate::enableSync(bool enable)
95{

Callers 5

methodDataFunction · 0.45
notificationDataFunction · 0.45
toProtocolStringMethod · 0.45
syncMethod · 0.45
writeToJsonMethod · 0.45

Calls 5

insertMethod · 0.80
QJsonDocumentClass · 0.50
keyMethod · 0.45
containsMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected