summaryrefslogtreecommitdiffstats
path: root/kturtle/src/kturtle.kcfg
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kturtle/src/kturtle.kcfg
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kturtle/src/kturtle.kcfg')
-rw-r--r--kturtle/src/kturtle.kcfg18
1 files changed, 9 insertions, 9 deletions
diff --git a/kturtle/src/kturtle.kcfg b/kturtle/src/kturtle.kcfg
index 1dba5092..dd57013a 100644
--- a/kturtle/src/kturtle.kcfg
+++ b/kturtle/src/kturtle.kcfg
@@ -26,11 +26,11 @@
// We assume keyword and highlight files come in pairs (if not there will be no highlight style)
- QStringList xmlFiles = KGlobal::dirs()->findAllResources("data", "kturtle/data/*.xml");
- QStringList LogoLanguageList;
- QString xmlTranslationFiles; // for debug purposes
- for ( QStringList::Iterator it = xmlFiles.begin(); it != xmlFiles.end(); ++it ) {
- QString xmlFile(*it);
+ TQStringList xmlFiles = KGlobal::dirs()->findAllResources("data", "kturtle/data/*.xml");
+ TQStringList LogoLanguageList;
+ TQString xmlTranslationFiles; // for debug purposes
+ for ( TQStringList::Iterator it = xmlFiles.begin(); it != xmlFiles.end(); ++it ) {
+ TQString xmlFile(*it);
xmlTranslationFiles += xmlFile.section('.', -2, -2).append(", "); // for debug purposes
// build list of language codes (en_US, nl, etc.)
LogoLanguageList += xmlFile.section('.', -2, -2);
@@ -54,13 +54,13 @@
// Get the desktops language
KConfigBase *globalConf = KGlobal::config();
globalConf->setGroup("Locale");
- QString desktopLanguage = globalConf->readEntry("Language");
+ TQString desktopLanguage = globalConf->readEntry("Language");
kdDebug(0) &lt;&lt; "desktopLanguage: "&lt;&lt; desktopLanguage &lt;&lt;endl;
- QString defaultLanguage = "en_US"; // init to the fall back value
+ TQString defaultLanguage = "en_US"; // init to the fall back value
int itemCount = 0; // for the LanguageComboBox
- for (QStringList::Iterator it = LogoLanguageList.begin(); it != LogoLanguageList.end(); ++it ) {
- QString testLanguage(*it);
+ for (TQStringList::Iterator it = LogoLanguageList.begin(); it != LogoLanguageList.end(); ++it ) {
+ TQString testLanguage(*it);
if (testLanguage == desktopLanguage) { // exact match
defaultLanguage = testLanguage;
break;