summaryrefslogtreecommitdiffstats
path: root/kpersonalizer/kfindlanguage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kpersonalizer/kfindlanguage.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpersonalizer/kfindlanguage.cpp')
-rw-r--r--kpersonalizer/kfindlanguage.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpersonalizer/kfindlanguage.cpp b/kpersonalizer/kfindlanguage.cpp
index a23f98322..3c3193c95 100644
--- a/kpersonalizer/kfindlanguage.cpp
+++ b/kpersonalizer/kfindlanguage.cpp
@@ -38,14 +38,14 @@ KFindLanguage::KFindLanguage() {
m_country = config->readEntry("Country", "C");
if (m_country == "C") {
- m_country = TQString::fromLatin1(getenv("LANG"));
+ m_country = TQString::tqfromLatin1(getenv("LANG"));
if(m_country.left(5) == "nn_NO") // glibc's nn_NO is KDE's no_NY
m_country = "no";
- if(m_country.contains("_"))
+ if(m_country.tqcontains("_"))
m_country = m_country.mid(m_country.find("_")+1);
- if(m_country.contains("."))
+ if(m_country.tqcontains("."))
m_country = m_country.left(m_country.find("."));
- if(m_country.contains("@"))
+ if(m_country.tqcontains("@"))
m_country = m_country.left(m_country.find("@"));
if(m_country != "C")
m_country = m_country.lower();
@@ -54,7 +54,7 @@ KFindLanguage::KFindLanguage() {
}
// get the users primary Languages
- KSimpleConfig ent(locate("locale", TQString::fromLatin1("l10n/%1/entry.desktop").arg(m_country)), true);
+ KSimpleConfig ent(locate("locale", TQString::tqfromLatin1("l10n/%1/entry.desktop").arg(m_country)), true);
ent.setGroup("KCM Locale");
TQStringList langs = ent.readListEntry("Languages");
if (langs.isEmpty())
@@ -96,7 +96,7 @@ KFindLanguage::KFindLanguage() {
if (m_oldlang.isEmpty()) {
compare = langs.first();
for(TQStringList::Iterator it = langs.begin(); it != langs.end(); ++it) {
- if (*it == TQString::fromLatin1(getenv("LANG")).mid(3, 2).lower())
+ if (*it == TQString::tqfromLatin1(getenv("LANG")).mid(3, 2).lower())
compare = *it;
}
}
@@ -112,7 +112,7 @@ KFindLanguage::KFindLanguage() {
TQString l = (*it).left((*it).find(";"));
if (l == "C")
match++;
- if(l.contains(compare))
+ if(l.tqcontains(compare))
match+=2;
if(l.left(compare.length()) == compare)
match+=10;