diff options
Diffstat (limited to 'lib/kotext/KoAutoFormat.cpp')
-rw-r--r-- | lib/kotext/KoAutoFormat.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kotext/KoAutoFormat.cpp b/lib/kotext/KoAutoFormat.cpp index 7ca6f1a7..84ec27d5 100644 --- a/lib/kotext/KoAutoFormat.cpp +++ b/lib/kotext/KoAutoFormat.cpp @@ -251,8 +251,8 @@ void KoAutoFormat::updateMaxWords() void KoAutoFormat::loadListOfWordCompletion() { - KConfig* config = KoGlobal::kofficeConfig(); - KConfigGroupSaver cgs( config, "Completion Word" ); + TDEConfig* config = KoGlobal::kofficeConfig(); + TDEConfigGroupSaver cgs( config, "Completion Word" ); m_listCompletion->insertItems(config->readListEntry( "list" )); } @@ -263,8 +263,8 @@ void KoAutoFormat::readConfig(bool force) // so that loading is faster and to avoid doing it for readonly documents. if ( m_configRead && !force ) return; - KConfig* config = KoGlobal::kofficeConfig(); - KConfigGroupSaver cgs( config, "AutoFormat" ); + TDEConfig* config = KoGlobal::kofficeConfig(); + TDEConfigGroupSaver cgs( config, "AutoFormat" ); //when we force don't load format language. if ( !force) m_autoFormatLanguage = config->readEntry("formatLanguage", TQString()); @@ -615,10 +615,10 @@ void KoAutoFormat::loadEntry( const TQDomElement &nl, bool _allLanguages) void KoAutoFormat::saveConfig() { - KConfig* config = KoGlobal::kofficeConfig(); + TDEConfig* config = KoGlobal::kofficeConfig(); KLocale klocale(m_doc->instance()->instanceName()); - KConfigGroupSaver cgs( config, "AutoFormat" ); + TDEConfigGroupSaver cgs( config, "AutoFormat" ); config->writeEntry( "ConvertUpperCase", m_convertUpperCase ); config->writeEntry( "formatLanguage", m_autoFormatLanguage=="all_languages" ? klocale.languageList().front() : m_autoFormatLanguage); |