summaryrefslogtreecommitdiffstats
path: root/kword/KWDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWDocument.cpp')
-rw-r--r--kword/KWDocument.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kword/KWDocument.cpp b/kword/KWDocument.cpp
index 94651cf8..01236753 100644
--- a/kword/KWDocument.cpp
+++ b/kword/KWDocument.cpp
@@ -257,7 +257,7 @@ KWDocument::KWDocument(TQWidget *parentWidget, const char *widname, TQObject* pa
initConfig();
// Get default font from the KWord config file
- KConfig *config = KWFactory::instance()->config();
+ TDEConfig *config = KWFactory::instance()->config();
config->setGroup("Document defaults" );
TQString defaultFontname=config->readEntry("DefaultFont");
if ( !defaultFontname.isEmpty() )
@@ -314,7 +314,7 @@ KWDocument::~KWDocument()
void KWDocument::initConfig()
{
- KConfig *config = KWFactory::instance()->config();
+ TDEConfig *config = KWFactory::instance()->config();
if( config->hasGroup("KSpell kword" ) )
{
config->setGroup( "KSpell kword" );
@@ -411,7 +411,7 @@ void KWDocument::initConfig()
}
// Load personal dict
- KConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" );
+ TDEConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" );
m_spellCheckPersonalDict = group.readListEntry( "PersonalDict" );
}
@@ -419,14 +419,14 @@ void KWDocument::saveConfig()
{
if ( !isReadWrite() )
return;
- KConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" );
+ TDEConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" );
group.writeEntry( "PersonalDict", m_spellCheckPersonalDict );
if ( !isEmbedded() )
{
// Only save the config that is manipulated by the UI directly.
// The config from the config dialog is saved by the dialog itself.
- KConfig *config = KWFactory::instance()->config();
+ TDEConfig *config = KWFactory::instance()->config();
config->setGroup( "Interface" );
config->writeEntry( "ViewFormattingChars", m_viewFormattingChars );
config->writeEntry( "ViewFormattingBreaks", m_viewFormattingBreak );
@@ -5135,7 +5135,7 @@ void KWDocument::changeBgSpellCheckingState( bool b )
{
enableBackgroundSpellCheck( b );
reactivateBgSpellChecking();
- KConfig *config = KWFactory::instance()->config();
+ TDEConfig *config = KWFactory::instance()->config();
config->setGroup("KSpell kword" );
config->writeEntry( "SpellCheck", (int)b );
}
@@ -5340,7 +5340,7 @@ void KWDocument::updateDirectCursorButton()
void KWDocument::setInsertDirectCursor(bool b)
{
m_bInsertDirectCursor=b;
- KConfig *config = KWFactory::instance()->config();
+ TDEConfig *config = KWFactory::instance()->config();
config->setGroup( "Interface" );
config->writeEntry( "InsertDirectCursor", b );
updateDirectCursorButton();