summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/scriptfunction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /kstars/kstars/tools/scriptfunction.cpp
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.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/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/tools/scriptfunction.cpp')
-rw-r--r--kstars/kstars/tools/scriptfunction.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kstars/kstars/tools/scriptfunction.cpp b/kstars/kstars/tools/scriptfunction.cpp
index c95594f5..1f99af3b 100644
--- a/kstars/kstars/tools/scriptfunction.cpp
+++ b/kstars/kstars/tools/scriptfunction.cpp
@@ -87,10 +87,10 @@ ScriptFunction::ScriptFunction( TQString name, TQString desc, bool clockfcn,
if ( NumArgs ) Description += " ";
Description += nameStyle.arg( ")" ) + "</p><p>";
- //before adding description, replace any '%n' instances with the corresponding
+ //before adding description, tqreplace any '%n' instances with the corresponding
//argument name in color. For now, assume that the %n's occur in order, with no skips.
//Also assume that '%' is *only* used to indicate argument instances
- int narg = desc.contains( '%' );
+ int narg = desc.tqcontains( '%' );
switch (narg ) {
case 1:
Description += desc.arg( paramStyle.arg( an1 ) );
@@ -205,8 +205,8 @@ TQString ScriptFunction::scriptLine() const {
TQString out( Name );
unsigned int i=0;
while ( ! ArgName[i].isEmpty() && i < 6 ) {
- // Wrap arg in quotes if it contains a space
- if ( ArgVal[i].contains(" ") ) {
+ // Wrap arg in quotes if it tqcontains a space
+ if ( ArgVal[i].tqcontains(" ") ) {
out += " \"" + ArgVal[i] + "\"";
} else {
out += " " + ArgVal[i];