diff options
Diffstat (limited to 'ktnef')
-rw-r--r-- | ktnef/gui/ktnefmain.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ktnef/gui/ktnefmain.cpp b/ktnef/gui/ktnefmain.cpp index 884c3ac9e..837f01c3b 100644 --- a/ktnef/gui/ktnefmain.cpp +++ b/ktnef/gui/ktnefmain.cpp @@ -65,12 +65,12 @@ KTNEFMain::KTNEFMain(TQWidget *parent, const char *name) setupTNEF(); - KGlobal::config()->setGroup("Settings"); - defaultdir_ = KGlobal::config()->readPathEntry("defaultdir", "/tmp/"); + TDEGlobal::config()->setGroup("Settings"); + defaultdir_ = TDEGlobal::config()->readPathEntry("defaultdir", "/tmp/"); lastdir_ = defaultdir_; // create personale temo extract dir - KStandardDirs::makeDir(KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp"); + KStandardDirs::makeDir(TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp"); resize(430,350); setAutoSaveSettings( "MainWindow" ); @@ -189,7 +189,7 @@ void KTNEFMain::viewFile() TQString KTNEFMain::extractTemp(KTNEFAttach *att) { - TQString dir = KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/"; + TQString dir = TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/"; parser_->extractFileTo(att->name(), dir); dir.append(att->name()); return dir; @@ -251,8 +251,8 @@ void KTNEFMain::optionDefaultDir() if (!dirname.isEmpty()) { defaultdir_ = dirname; - KGlobal::config()->setGroup("Settings"); - KGlobal::config()->writePathEntry("defaultdir",defaultdir_); + TDEGlobal::config()->setGroup("Settings"); + TDEGlobal::config()->writePathEntry("defaultdir",defaultdir_); } } @@ -285,7 +285,7 @@ void KTNEFMain::enableSingleAction(bool on) void KTNEFMain::cleanup() { - TQDir d(KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/"); + TQDir d(TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/"); const TQFileInfoList *list = d.entryInfoList(TQDir::Files|TQDir::Hidden,TQDir::Unsorted); TQFileInfoListIterator it(*list); for (;it.current();++it) @@ -358,7 +358,7 @@ void KTNEFMain::viewDragRequested( const TQValueList<KTNEFAttach*>& list ) void KTNEFMain::slotEditToolbars() { - saveMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") ); + saveMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") ); KEditToolbar dlg(actionCollection()); connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() )); dlg.exec(); @@ -367,7 +367,7 @@ void KTNEFMain::slotEditToolbars() void KTNEFMain::slotNewToolbarConfig() { createGUI(); - applyMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") ); + applyMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") ); } void KTNEFMain::slotShowMessageProperties() @@ -380,7 +380,7 @@ void KTNEFMain::slotShowMessageText() { TQString rtf = parser_->message()->rtfString(); tqDebug( "%s", rtf.latin1() ); - KTempFile tmpFile( KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf"); + KTempFile tmpFile( TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf"); *( tmpFile.textStream() ) << rtf; tmpFile.close(); |