Changeset View
Changeset View
Standalone View
Standalone View
src/ksettings/dispatcher.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 63 | { | |||
---|---|---|---|---|---|
65 | // check if the componentName is valid: | 65 | // check if the componentName is valid: | ||
66 | if (! d()->m_componentInfo.contains(componentName)) { | 66 | if (! d()->m_componentInfo.contains(componentName)) { | ||
67 | return; | 67 | return; | ||
68 | } | 68 | } | ||
69 | // first we reparse the config so that the KConfig object will be up to date | 69 | // first we reparse the config so that the KConfig object will be up to date | ||
70 | KSharedConfig::Ptr config = configForComponentName(componentName); | 70 | KSharedConfig::Ptr config = configForComponentName(componentName); | ||
71 | config->reparseConfiguration(); | 71 | config->reparseConfiguration(); | ||
72 | 72 | | |||
73 | foreach (const ComponentInfo::Slot &slot, d()->m_componentInfo[componentName].slotList) { | 73 | const auto lstSlot = d()->m_componentInfo[componentName].slotList; | ||
74 | for (const ComponentInfo::Slot &slot : lstSlot) { | ||||
74 | QMetaObject::invokeMethod(slot.first, slot.second); | 75 | QMetaObject::invokeMethod(slot.first, slot.second); | ||
75 | } | 76 | } | ||
76 | } | 77 | } | ||
77 | 78 | | |||
78 | void syncConfiguration() | 79 | void syncConfiguration() | ||
79 | { | 80 | { | ||
80 | for (QMap<QString, ComponentInfo>::ConstIterator it = d()->m_componentInfo.constBegin(), total = d()->m_componentInfo.constEnd(); it != total; ++it) { | 81 | for (QMap<QString, ComponentInfo>::ConstIterator it = d()->m_componentInfo.constBegin(), total = d()->m_componentInfo.constEnd(); it != total; ++it) { | ||
81 | KSharedConfig::Ptr config = configForComponentName(it.key()); | 82 | KSharedConfig::Ptr config = configForComponentName(it.key()); | ||
Show All 25 Lines |