summaryrefslogtreecommitdiffstats
path: root/kaudiocreator/encoder.cpp
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
commit7ef01c0f34d9c6732d258154bcd3ba5a88280db9 (patch)
tree48ff13dab43883d19ecf2272b8ba72a013d5bc57 /kaudiocreator/encoder.cpp
parentc05ca496a526b3fc192dbfafe0955e5824b22e08 (diff)
downloadtdemultimedia-7ef01c0f34d9c6732d258154bcd3ba5a88280db9.tar.gz
tdemultimedia-7ef01c0f34d9c6732d258154bcd3ba5a88280db9.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaudiocreator/encoder.cpp')
-rw-r--r--kaudiocreator/encoder.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kaudiocreator/encoder.cpp b/kaudiocreator/encoder.cpp
index a0567fbf..97ab366a 100644
--- a/kaudiocreator/encoder.cpp
+++ b/kaudiocreator/encoder.cpp
@@ -160,7 +160,7 @@ void Encoder::tendToNewJobs() {
EncoderPrefs* prefs = loadEncoder(job->encoder);
TQString desiredFile = Prefs::fileFormat();
- desiredFile.tqreplace( TQRegExp("~"), TQDir::homeDirPath() );
+ desiredFile.replace( TQRegExp("~"), TQDir::homeDirPath() );
{
TQMap <TQString,TQString> map;
map.insert("extension", prefs->extension());
@@ -185,7 +185,7 @@ void Encoder::tendToNewJobs() {
}
}
- int lastSlash = desiredFile.tqfindRev('/',-1);
+ int lastSlash = desiredFile.findRev('/',-1);
if ( lastSlash == -1 ||
!(KStandardDirs::makeDir( desiredFile.mid(0,lastSlash), 0775)) ) {
KMessageBox::sorry(0, i18n("Cannot place file, unable to make directories."), i18n("Encoding Failed"));
@@ -225,7 +225,7 @@ void Encoder::tendToNewJobs() {
}
/**
- * We have received some output from a thread. See if it tqcontains %.
+ * We have received some output from a thread. See if it contains %.
* @param proc the process that has new output.
* @param buffer the output from the process
* @param buflen the length of the buffer.
@@ -235,7 +235,7 @@ void Encoder::receivedThreadOutput(KProcess *process, char *buffer, int length )
kdDebug(60002) << buffer << endl;
// Make sure we have a job to send an update too.
- if(jobs.tqfind((KShellProcess*)process) == jobs.end()){
+ if(jobs.find((KShellProcess*)process) == jobs.end()){
kdDebug(60002) << "Encoder::receivedThreadOutput Job doesn't exists. Line: " << __LINE__ << endl;
return;
}
@@ -247,13 +247,13 @@ void Encoder::receivedThreadOutput(KProcess *process, char *buffer, int length )
// Make sure the output string has a % symble in it.
TQString output = TQString(buffer).mid(0,length);
- if ( output.tqfind('%') == -1 && reportCount < 5 ) {
+ if ( output.find('%') == -1 && reportCount < 5 ) {
kdDebug(60002) << "No \'%%\' in output. Report as bug w/encoder options if progressbar doesn't fill." << endl;
reportCount++;
return;
}
//qDebug(TQString("Pre cropped: %1").tqarg(output).latin1());
- output = output.mid(output.tqfind('%')-loadEncoder(job->encoder)->percentLength(),2);
+ output = output.mid(output.find('%')-loadEncoder(job->encoder)->percentLength(),2);
//qDebug(TQString("Post cropped: %1").tqarg(output).latin1());
bool conversionSuccessfull = false;
int percent = output.toInt(&conversionSuccessfull);