summaryrefslogtreecommitdiffstats
path: root/kaudiocreator/encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaudiocreator/encoder.cpp')
-rw-r--r--kaudiocreator/encoder.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kaudiocreator/encoder.cpp b/kaudiocreator/encoder.cpp
index e528a29a..0be1fef1 100644
--- a/kaudiocreator/encoder.cpp
+++ b/kaudiocreator/encoder.cpp
@@ -31,7 +31,7 @@
#include <kurl.h>
#include <kdebug.h>
#include <knotifyclient.h>
-#include <tqtextedit.h>
+#include <textedit.h>
#include <kinputdialog.h>
/**
@@ -53,7 +53,7 @@ void Encoder::loadSettings() {
EncoderPrefs* Encoder::loadEncoder( int encoder ){
EncoderPrefs* prefs;
- TQString currentEncoderGroup = TQString("Encoder_%1").tqarg(encoder);
+ TQString currentEncoderGroup = TQString("Encoder_%1").arg(encoder);
prefs = EncoderPrefs::prefs(currentEncoderGroup);
if ( !EncoderPrefs::hasPrefs(currentEncoderGroup) ) {
KMessageBox::sorry(0, i18n("No encoder has been selected.\nPlease select an encoder in the configuration."), i18n("No Encoder Selected"));
@@ -132,8 +132,8 @@ void Encoder::removeJob(int id ) {
* @param job the job to encode.
*/
void Encoder::encodeWav(Job *job ) {
- emit(addJob(job, i18n("Encoding (%1): %2 - %3").tqarg(loadEncoder(job->encoder)->extension())
- .tqarg(job->track_artist).tqarg(job->track_title)));
+ emit(addJob(job, i18n("Encoding (%1): %2 - %3").arg(loadEncoder(job->encoder)->extension())
+ .arg(job->track_artist).arg(job->track_title)));
pendingJobs.append(job);
tendToNewJobs();
}
@@ -252,12 +252,12 @@ void Encoder::receivedThreadOutput(KProcess *process, char *buffer, int length )
reportCount++;
return;
}
- //qDebug(TQString("Pre cropped: %1").tqarg(output).latin1());
+ //qDebug(TQString("Pre cropped: %1").arg(output).latin1());
output = output.mid(output.find('%')-loadEncoder(job->encoder)->percentLength(),2);
- //qDebug(TQString("Post cropped: %1").tqarg(output).latin1());
+ //qDebug(TQString("Post cropped: %1").arg(output).latin1());
bool conversionSuccessfull = false;
int percent = output.toInt(&conversionSuccessfull);
- //qDebug(TQString("number: %1").tqarg(percent).latin1());
+ //qDebug(TQString("number: %1").arg(percent).latin1());
if ( percent >= 0 && percent < 100 && conversionSuccessfull ) {
emit(updateProgress(job->id, percent));
}
@@ -284,7 +284,7 @@ void Encoder::jobDone(KProcess *process ) {
bool showDebugBox = false;
if ( process->exitStatus() == 127 ) {
- KMessageBox::sorry(0, i18n("The selected encoder was not found.\nThe wav file has been removed. Command was: %1").tqarg(job->errorString), i18n("Encoding Failed"));
+ KMessageBox::sorry(0, i18n("The selected encoder was not found.\nThe wav file has been removed. Command was: %1").arg(job->errorString), i18n("Encoding Failed"));
emit(updateProgress(job->id, -1));
}
else if ( TQFile::exists(job->newLocation) ) {