diff options
Diffstat (limited to 'kaudiocreator/jobqueimp.cpp')
-rw-r--r-- | kaudiocreator/jobqueimp.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kaudiocreator/jobqueimp.cpp b/kaudiocreator/jobqueimp.cpp index 8ca6d087..81c0431d 100644 --- a/kaudiocreator/jobqueimp.cpp +++ b/kaudiocreator/jobqueimp.cpp @@ -64,7 +64,7 @@ JobQueImp::JobQueImp( TQWidget* parent, const char* name) : */ TQString JobQueImp::getStringFromNumber(int number){ if(number > highestNumber){ - int diff = TQString("%1").tqarg(number).length() - TQString("%1").tqarg(highestNumber).length(); + int diff = TQString("%1").arg(number).length() - TQString("%1").arg(highestNumber).length(); highestNumber = number; if(diff > 0){ // We have to update all of the cells. @@ -77,7 +77,7 @@ TQString JobQueImp::getStringFromNumber(int number){ } TQString buffer = ""; - uint newLength = TQString("%1").tqarg(highestNumber).length() - TQString("%1").tqarg(number).length(); + uint newLength = TQString("%1").arg(highestNumber).length() - TQString("%1").arg(number).length(); for(uint i=0; i < newLength; i++) buffer += "0"; return buffer; @@ -92,9 +92,9 @@ void JobQueImp::addJob(Job*job, const TQString &name ){ if(!job) return; job->id = ++currentId; - QueListViewItem *currentItem = new QueListViewItem(todoQue, TQString("%1%2").tqarg(getStringFromNumber(currentId)).tqarg(currentId), "0", name); + QueListViewItem *currentItem = new QueListViewItem(todoQue, TQString("%1%2").arg(getStringFromNumber(currentId)).arg(currentId), "0", name); currentItem->setPixmap(ICON_LOC, SmallIcon("player_pause", currentItem->height()-2)); - queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); + queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount())); } /** @@ -106,7 +106,7 @@ void JobQueImp::updateProgress(int id, int progress){ int currentJobCount = numberOfJobsNotFinished(); QueListViewItem * currentItem = (QueListViewItem*)todoQue->firstChild(); TQString buffer = getStringFromNumber(id); - buffer += TQString("%1").tqarg(id); + buffer += TQString("%1").arg(id); // Find the current item while( currentItem != NULL ){ @@ -124,7 +124,7 @@ void JobQueImp::updateProgress(int id, int progress){ return; currentItem->percentDone = progress; - currentItem->tqrepaint(); + currentItem->repaint(); // Update the icon if needed if(progress > 0 && progress < 100 && !currentItem->progressing ){ @@ -158,7 +158,7 @@ bool JobQueImp::removeJob(QueListViewItem *item, bool kill, bool prompt){ if(!item) return false; - if(item->percentDone < 100 && item->percentDone > -1 && (prompt && KMessageBox::questionYesNo(this, i18n("KAudioCreator has not finished %1. Remove anyway?").tqarg(item->text(HEADER_DESCRIPTION)), i18n("Unfinished Job in Queue"), KStdGuiItem::del(), i18n("Keep")) + if(item->percentDone < 100 && item->percentDone > -1 && (prompt && KMessageBox::questionYesNo(this, i18n("KAudioCreator has not finished %1. Remove anyway?").arg(item->text(HEADER_DESCRIPTION)), i18n("Unfinished Job in Queue"), KStdGuiItem::del(), i18n("Keep")) == KMessageBox::No )) return false; @@ -180,7 +180,7 @@ bool JobQueImp::removeJob(QueListViewItem *item, bool kill, bool prompt){ currentId = 0; } else - queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); + queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount())); return true; } @@ -248,7 +248,7 @@ void JobQueImp::clearDoneJobs(){ currentId = 0; } else - queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); + queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount())); } /** @@ -270,7 +270,7 @@ int JobQueImp::numberOfJobsNotFinished(){ } /** - * The tqrepaint function overloaded so that we can have a built in progressbar. + * The repaint function overloaded so that we can have a built in progressbar. */ void QueListViewItem::paintCell (TQPainter * p,const TQColorGroup &cg,int column, int width,int align){ |