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

Method clear

src/common/settings/settings.cpp:264–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void Settings::clear()
265{
266 if (d->settingData.values.isEmpty())
267 return;
268
269 const auto cacheValues = d->settingData.values;
270 d->settingData.values.clear();
271 d->enableSync(true);
272
273 auto iter = cacheValues.cbegin();
274 for (; iter != cacheValues.cend(); ++iter) {
275 const auto &values = iter.value();
276 for (auto iv = values.cbegin(); iv != values.cend(); ++iv) {
277 const auto &newValue = value(iter.key(), iv.key());
278 if (newValue != iv.value())
279 Q_EMIT valueChanged(iter.key(), iv.key(), newValue);
280 }
281 }
282}
283
284void Settings::reload()
285{

Callers 2

loadMethod · 0.45
reloadMethod · 0.45

Calls 7

enableSyncMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
valueClass · 0.50
isEmptyMethod · 0.45
valueMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected