diff options
Diffstat (limited to 'kcron')
-rw-r--r-- | kcron/ctunit.cpp | 4 | ||||
-rw-r--r-- | kcron/kttask.cpp | 8 | ||||
-rw-r--r-- | kcron/ktvariable.cpp | 2 | ||||
-rw-r--r-- | kcron/ktview.cpp | 6 |
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; |