Changeset View
Changeset View
Standalone View
Standalone View
src/kdeclarative/configpropertymap.cpp
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Line(s) | |||||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | void ConfigPropertyMapPrivate::writeConfig() | 105 | void ConfigPropertyMapPrivate::writeConfig() | ||
106 | { | 106 | { | ||
107 | if (!config) { | 107 | if (!config) { | ||
108 | return; | 108 | return; | ||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | foreach (KConfigSkeletonItem *item, config.data()->items()) { | 111 | const auto lstItems = config.data()->items(); | ||
112 | for (KConfigSkeletonItem *item : lstItems) { | ||||
112 | item->setProperty(q->value(item->key())); | 113 | item->setProperty(q->value(item->key())); | ||
113 | } | 114 | } | ||
114 | 115 | | |||
115 | config.data()->blockSignals(true); | 116 | config.data()->blockSignals(true); | ||
116 | config.data()->save(); | 117 | config.data()->save(); | ||
117 | config.data()->blockSignals(false); | 118 | config.data()->blockSignals(false); | ||
118 | } | 119 | } | ||
119 | 120 | | |||
Show All 17 Lines |