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

Method removeGroup

src/common/settings/settings.cpp:226–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void Settings::removeGroup(const QString &group)
227{
228 if (!d->settingData.values.contains(group))
229 return;
230
231 const auto &groupValue = d->settingData.values.take(group);
232 d->enableSync(true);
233
234 for (auto iter = groupValue.cbegin(); iter != groupValue.cend(); ++iter) {
235 const auto &value = this->value(group, iter.key());
236 if (value != iter.value())
237 Q_EMIT valueChanged(group, iter.key(), value);
238 }
239}
240
241void Settings::remove(const QString &group, const QString &key)
242{

Callers

nothing calls this directly

Calls 7

valueMethod · 0.95
takeMethod · 0.80
enableSyncMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
containsMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected