summaryrefslogtreecommitdiffstats
path: root/kcron
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4a25ca5c80d9b88fdc1a0d44d1db47da47206899 (patch)
tree8a1d1e893a80df8ad5233802c2b0e39220b86168 /kcron
parent441266d591a9064dd619da0e1bd49b871d6a9c70 (diff)
downloadtdeadmin-4a25ca5c80d9b88fdc1a0d44d1db47da47206899.tar.gz
tdeadmin-4a25ca5c80d9b88fdc1a0d44d1db47da47206899.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron')
-rw-r--r--kcron/ctunit.cpp4
-rw-r--r--kcron/kttask.cpp8
-rw-r--r--kcron/ktvariable.cpp2
-rw-r--r--kcron/ktview.cpp6
4 files changed, 10 insertions, 10 deletions
diff --git a/kcron/ctunit.cpp b/kcron/ctunit.cpp
index e843b2e..d034c8a 100644
--- a/kcron/ctunit.cpp
+++ b/kcron/ctunit.cpp
@@ -84,7 +84,7 @@ void CTUnit<min, max>::parse(string tokStr)
{
subelement = tokStr.substr(0,commapos);
- // tqfind "/" to determine step
+ // find "/" to determine step
slashpos = subelement.find("/");
if (slashpos == -1)
{
@@ -99,7 +99,7 @@ void CTUnit<min, max>::parse(string tokStr)
step = 1;
}
- // tqfind "=" to determine range
+ // find "=" to determine range
dashpos = subelement.find("-");
if (dashpos == -1)
{
diff --git a/kcron/kttask.cpp b/kcron/kttask.cpp
index 46ec77c..99e9608 100644
--- a/kcron/kttask.cpp
+++ b/kcron/kttask.cpp
@@ -421,10 +421,10 @@ void KTTask::slotCommandChanged()
/*
TQString qs(leCommand->text());
- int beginPos(qs.tqfindRev("/", qs.length()) + 1);
+ int beginPos(qs.findRev("/", qs.length()) + 1);
if (beginPos < 0) beginPos = 0;
- int endPos(qs.tqfindRev(" ", qs.length()));
+ int endPos(qs.findRev(" ", qs.length()));
if (endPos < 0) endPos = qs.length();
TQString iconName(qs.mid(beginPos, endPos-beginPos) + ".xpm");
@@ -609,9 +609,9 @@ void KTTask::slotOK()
// absolute path
TQString qs(leCommand->text());
- if (qs.tqfind("/") == 0)
+ if (qs.find("/") == 0)
{
- int spacePos(qs.tqfind(" "));
+ int spacePos(qs.find(" "));
if (spacePos < 0) spacePos = qs.length();
TQString programName(qs.left(spacePos));
TQFileInfo file(programName);
diff --git a/kcron/ktvariable.cpp b/kcron/ktvariable.cpp
index 60ff101..474d22c 100644
--- a/kcron/ktvariable.cpp
+++ b/kcron/ktvariable.cpp
@@ -144,7 +144,7 @@ void KTVariable::slotOk()
ctvar->variable = cmbVariable->currentText().local8Bit().data();
ctvar->value = leValue->text().local8Bit().data();
- ctvar->comment = teComment->text().tqreplace('\n',' ').tqreplace('\r',' ').local8Bit().data();
+ ctvar->comment = teComment->text().replace('\n',' ').replace('\r',' ').local8Bit().data();
ctvar->enabled = chkEnabled->isChecked();
close();
}
diff --git a/kcron/ktview.cpp b/kcron/ktview.cpp
index 5819104..50a562c 100644
--- a/kcron/ktview.cpp
+++ b/kcron/ktview.cpp
@@ -427,10 +427,10 @@ TQString KTView::absolute() const
{
TQString fullCommand = TQString::fromLocal8Bit(currentCTTask->command.c_str());
TQString command(fullCommand);
- int pos(command.tqfind(" "));
+ int pos(command.find(" "));
if (pos > 0) command = command.left(pos);
- if (command.tqfind("/") == 0)
+ if (command.find("/") == 0)
return fullCommand;
TQString path = TQString::fromLocal8Bit(currentCTCron->path().c_str());
@@ -439,7 +439,7 @@ TQString KTView::absolute() const
TQString prefix;
TQString full;
- while ((end = path.tqfind(":", begin)) > 0)
+ while ((end = path.find(":", begin)) > 0)
{
prefix = path.mid(begin, begin + end) + "/";
full = prefix + command;