summaryrefslogtreecommitdiffstats
path: root/kdecore/kde-config.cpp.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-13 08:32:36 +0000
commitf7e71d47719ab6094cf4a9fafffa5ea351973522 (patch)
tree30834aa632d442019e14f88685001d94657d060b /kdecore/kde-config.cpp.in
parentb31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff)
downloadtdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz
tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kde-config.cpp.in')
-rw-r--r--kdecore/kde-config.cpp.in30
1 files changed, 15 insertions, 15 deletions
diff --git a/kdecore/kde-config.cpp.in b/kdecore/kde-config.cpp.in
index da9d41782..eac5f43cf 100644
--- a/kdecore/kde-config.cpp.in
+++ b/kdecore/kde-config.cpp.in
@@ -32,67 +32,67 @@ bool _expandvars = false;
TQString expandvars(const char *_input)
{
- TQString result = TQString::fromLatin1(_input);
+ TQString result = TQString::tqfromLatin1(_input);
if (!_expandvars)
return result;
bool changed = false;
- int index = result.find("${prefix}");
+ int index = result.tqfind("${prefix}");
if (index >= 0) {
result = result.replace(index, 9, "@prefix@");
changed = true;
}
- index = result.find("$(prefix)");
+ index = result.tqfind("$(prefix)");
if (index >= 0) {
result = result.replace(index, 9, "@prefix@");
changed = true;
}
- index = result.find("${datadir}");
+ index = result.tqfind("${datadir}");
if (index >= 0) {
result = result.replace(index, 10, "@datadir@");
changed = true;
}
- index = result.find("$(datadir)");
+ index = result.tqfind("$(datadir)");
if (index >= 0) {
result = result.replace(index, 10, "@datadir@");
changed = true;
}
- index = result.find("${exec_prefix}");
+ index = result.tqfind("${exec_prefix}");
if (index >= 0) {
result = result.replace(index, 14, "@exec_prefix@");
changed = true;
}
- index = result.find("$(exec_prefix)");
+ index = result.tqfind("$(exec_prefix)");
if (index >= 0) {
result = result.replace(index, 14, "@exec_prefix@");
changed = true;
}
- index = result.find("${libdir}");
+ index = result.tqfind("${libdir}");
if (index >= 0) {
result = result.replace(index, 9, "@libdir@");
changed = true;
}
- index = result.find("$(libdir)");
+ index = result.tqfind("$(libdir)");
if (index >= 0) {
result = result.replace(index, 9, "@libdir@");
changed = true;
}
- index = result.find("${includedir}");
+ index = result.tqfind("${includedir}");
if (index >= 0) {
result = result.replace(index, 20, "@includedir@");
changed = true;
}
- index = result.find("$(includedir)");
+ index = result.tqfind("$(includedir)");
if (index >= 0) {
result = result.replace(index, 20, "@includedir@");
changed = true;
}
- index = result.find("${sysconfdir}");
+ index = result.tqfind("${sysconfdir}");
if (index >= 0) {
result = result.replace(index, 13, "@sysconfdir@");
changed = true;
}
- index = result.find("$(sysconfdir)");
+ index = result.tqfind("$(sysconfdir)");
if (index >= 0) {
result = result.replace(index, 13, "@sysconfdir@");
changed = true;
@@ -200,7 +200,7 @@ int main(int argc, char **argv)
if (helptexts[index]) {
printf("%s - %s\n", helptexts[index], i18n(helptexts[index+1]).local8Bit().data());
} else {
- printf("%s", i18n("%1 - unknown type\n").arg(*it).local8Bit().data());
+ printf("%s", TQString(i18n("%1 - unknown type\n").arg(*it)).local8Bit().data());
}
}
return 0;
@@ -225,7 +225,7 @@ int main(int argc, char **argv)
else if ( type == "document" )
printResult(KGlobalSettings::documentPath());
else
- fprintf(stderr, "%s", i18n("%1 - unknown type of userpath\n").arg(type).local8Bit().data() );
+ fprintf(stderr, "%s", TQString(i18n("%1 - unknown type of userpath\n").arg(type)).local8Bit().data() );
return 0;
}