summaryrefslogtreecommitdiffstats
path: root/kturtle/src
diff options
context:
space:
mode:
Diffstat (limited to 'kturtle/src')
-rw-r--r--kturtle/src/kturtle.cpp14
-rw-r--r--kturtle/src/kturtle.h2
-rw-r--r--kturtle/src/kturtle.kcfg2
3 files changed, 9 insertions, 9 deletions
diff --git a/kturtle/src/kturtle.cpp b/kturtle/src/kturtle.cpp
index 02ecddb8..06f72c53 100644
--- a/kturtle/src/kturtle.cpp
+++ b/kturtle/src/kturtle.cpp
@@ -103,7 +103,7 @@ MainWindow::MainWindow(KTextEditor::Document *document) : editor(0)
// init with more usefull size, stolen from kwite (they stole it from konq)
if ( !initialGeometrySet() && !kapp->config()->hasGroup("MainWindow Settings") ) resize(640, 480);
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
readConfig(config);
}
@@ -490,7 +490,7 @@ bool MainWindow::queryClose()
}
}
}
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
config->setGroup("General Options");
m_recentFiles->saveEntries(config, "Recent Files");
config->sync();
@@ -865,10 +865,10 @@ void MainWindow::slotRestartFullScreen()
void MainWindow::slotSettings()
{
// Check if there is already a dialog, if so bring it to the foreground.
- if ( KConfigDialog::showDialog("settings") ) return;
+ if ( TDEConfigDialog::showDialog("settings") ) return;
// Create a new dialog with the same name as the above checking code.
- KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self() );
+ TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self() );
// connect the help
connect( dialog, TQT_SIGNAL( helpClicked() ), this, TQT_SLOT( slotSettingsHelp() ) );
@@ -965,7 +965,7 @@ void MainWindow::slotUpdateSettings()
slotSetHighlightstyle( selectedLogoLanguage );
// set the statusbar to display the language as just updated
// TODO maybe this language name can be more pretty by not using ".left(2)", ie "American English" would than be possible... [if this is possible this should be fixed at more places.]
- KConfig entry(locate("locale", "all_languages"));
+ TDEConfig entry(locate("locale", "all_languages"));
entry.setGroup(Settings::logoLanguage().left(2));
slotStatusBar(i18n("Command language: %1").arg( entry.readEntry("Name") ), IDS_LANG);
@@ -973,11 +973,11 @@ void MainWindow::slotUpdateSettings()
translate = new Translate();
}
-void MainWindow::readConfig(KConfig *config)
+void MainWindow::readConfig(TDEConfig *config)
{
config->setGroup("General Options");
m_recentFiles->loadEntries(config, "Recent Files");
- KConfig entry(locate("locale", "all_languages"));
+ TDEConfig entry(locate("locale", "all_languages"));
entry.setGroup(Settings::logoLanguage().left(2));
slotStatusBar(i18n("Command language: %1").arg( entry.readEntry("Name") ), IDS_LANG);
}
diff --git a/kturtle/src/kturtle.h b/kturtle/src/kturtle.h
index 6c3a3099..1cd77f55 100644
--- a/kturtle/src/kturtle.h
+++ b/kturtle/src/kturtle.h
@@ -128,7 +128,7 @@ class MainWindow : public KParts::MainWindow
bool queryClose();
void finishExecution();
- void readConfig(KConfig *config);
+ void readConfig(TDEConfig *config);
void updateFullScreen();
virtual bool event(TQEvent* e);
diff --git a/kturtle/src/kturtle.kcfg b/kturtle/src/kturtle.kcfg
index f3fec672..192d6986 100644
--- a/kturtle/src/kturtle.kcfg
+++ b/kturtle/src/kturtle.kcfg
@@ -52,7 +52,7 @@
// The KconfigXT framework makes shure the value that is saved in the kturtlerc file will be used in stead of the defaultLanguage that we find here.
// Get the desktops language
- KConfigBase *globalConf = TDEGlobal::config();
+ TDEConfigBase *globalConf = TDEGlobal::config();
globalConf->setGroup("Locale");
TQString desktopLanguage = globalConf->readEntry("Language");
kdDebug(0) << "desktopLanguage: "<< desktopLanguage <<endl;