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

Method setValue

src/common/settings/settings.cpp:207–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void Settings::setValue(const QString &group, const QString &key, const QVariant &value, bool notify)
208{
209 bool changed = false;
210 if (d->isRemovable(group, key)) {
211 changed = d->settingData.value(group, key) != value;
212 } else {
213 changed = this->value(group, key) != value;
214 }
215
216 if (!changed)
217 return;
218
219 d->settingData.setValue(group, key, value);
220 d->enableSync(true);
221
222 if (notify)
223 Q_EMIT valueChanged(group, key, value);
224}
225
226void Settings::removeGroup(const QString &group)
227{

Callers 6

foreachFunction · 0.45
writeSettingsMethod · 0.45
installTranslatorFunction · 0.45
saveSettingsMethod · 0.45
scrollToBottomMethod · 0.45
doShowProgressMethod · 0.45

Calls 3

valueMethod · 0.95
isRemovableMethod · 0.80
enableSyncMethod · 0.80

Tested by

no test coverage detected