diff options
Diffstat (limited to 'kaudiocreator/encoder.cpp')
-rw-r--r-- | kaudiocreator/encoder.cpp | 12 |
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); |