KUrl Navigator::homeURL() { if ( !mHomeUrl.isEmpty() ) return mHomeUrl; KSharedConfig::Ptr cfg = KGlobal::config(); // We have to reparse the configuration here in order to get a // language-specific StartUrl, e.g. "StartUrl[de]". cfg->reparseConfiguration(); mHomeUrl = cfg->group("General").readPathEntry( "StartUrl", QLatin1String("khelpcenter:home") ); return mHomeUrl; }
void reparseConfiguration(const QString & componentName) { kDebug(701) << componentName; // check if the componentName is valid: if (! d->m_componentInfo.contains(componentName)) { return; } // first we reparse the config of the componentData so that the KConfig object // will be up to date KSharedConfig::Ptr config = d->m_componentInfo[componentName].componentData.config(); config->reparseConfiguration(); foreach(const ComponentInfo::Slot& slot, d->m_componentInfo[componentName].slotList ) { QMetaObject::invokeMethod(slot.first, slot.second); } }