Changeset View
Changeset View
Standalone View
Standalone View
src/core/kconfig.cpp
Show First 20 Lines • Show All 1005 Lines • ▼ Show 20 Line(s) | 994 | { | |||
---|---|---|---|---|---|
1006 | } | 1006 | } | ||
1007 | 1007 | | |||
1008 | bool dirtied = entryMap.setEntry(group, key, value, options); | 1008 | bool dirtied = entryMap.setEntry(group, key, value, options); | ||
1009 | if (dirtied && (flags & KConfigBase::Persistent)) { | 1009 | if (dirtied && (flags & KConfigBase::Persistent)) { | ||
1010 | bDirty = true; | 1010 | bDirty = true; | ||
1011 | } | 1011 | } | ||
1012 | } | 1012 | } | ||
1013 | 1013 | | |||
1014 | void KConfigPrivate::revertEntry(const QByteArray &group, const char *key) | 1014 | void KConfigPrivate::revertEntry(const QByteArray &group, const char *key, KConfigBase::WriteConfigFlags flags) | ||
1015 | { | 1015 | { | ||
1016 | bool dirtied = entryMap.revertEntry(group, key); | 1016 | KEntryMap::EntryOptions options = convertToOptions(flags); | ||
1017 | | ||||
1018 | bool dirtied = entryMap.revertEntry(group, key, options); | ||||
1017 | if (dirtied) { | 1019 | if (dirtied) { | ||
1018 | bDirty = true; | 1020 | bDirty = true; | ||
1019 | } | 1021 | } | ||
1020 | } | 1022 | } | ||
1021 | 1023 | | |||
1022 | QByteArray KConfigPrivate::lookupData(const QByteArray &group, const char *key, | 1024 | QByteArray KConfigPrivate::lookupData(const QByteArray &group, const char *key, | ||
1023 | KEntryMap::SearchFlags flags) const | 1025 | KEntryMap::SearchFlags flags) const | ||
1024 | { | 1026 | { | ||
Show All 29 Lines |