diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:35:52 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:35:52 -0600 |
commit | 1e42ec29323d1016df59b8b571d16fefe3d4e6f1 (patch) | |
tree | 3cdfd52c475c581a2e1fe682e0954305a21acea2 /libk9copy/k9dvdauthor.cpp | |
parent | 445633c8ffa0b5219c036b130230fdc6d97e9894 (diff) | |
download | k9copy-1e42ec29323d1016df59b8b571d16fefe3d4e6f1.tar.gz k9copy-1e42ec29323d1016df59b8b571d16fefe3d4e6f1.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'libk9copy/k9dvdauthor.cpp')
-rwxr-xr-x | libk9copy/k9dvdauthor.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/libk9copy/k9dvdauthor.cpp b/libk9copy/k9dvdauthor.cpp index 71a4072..5896075 100755 --- a/libk9copy/k9dvdauthor.cpp +++ b/libk9copy/k9dvdauthor.cpp @@ -145,7 +145,7 @@ void k9DVDAuthor::addMenus(TQDomElement &titleSet) { error=true; TQString sMsg; //sMsg.TQString::sprintf(tr2i18n("'%s' not selected"),l_track->getname().latin1()); - sMsg=i18n("'%1' not selected").tqarg(l_track->getname()); + sMsg=i18n("'%1' not selected").arg(l_track->getname()); KMessageBox::error( 0,sMsg, tr2i18n("authoring")); } start.sprintf("jump titleset %d menu;",DVD->getnewTitleNum(l_track)); @@ -222,10 +222,10 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { TQString txtcmd; if (audio !=-1) { txtcmd="subtitle=%1;\n audio=%2;\n g1=0;jump title 1;"; - txtcmd=txtcmd.tqarg(subtitle+63).tqarg(audio); + txtcmd=txtcmd.arg(subtitle+63).arg(audio); } else { txtcmd="subtitle=%1;\n g1=0;jump title 1;"; - txtcmd=txtcmd.tqarg(subtitle+63); + txtcmd=txtcmd.arg(subtitle+63); } precmd.setNodeValue(txtcmd); @@ -339,23 +339,23 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { for (k9ChapterCell *cell =l_chap->cells.first();cell ;cell =l_chap->cells.next() ) { icell++; - sCell = TQString("--cell %1").tqarg(icell); - sChapter=TQString("--chapter %1").tqarg(numPart); + sCell = TQString("--cell %1").arg(icell); + sChapter=TQString("--chapter %1").arg(numPart); //test uint32_t itotSize = (cell->getlastSector()-cell->getstartSector())* DVD_VIDEO_LB_LEN; TQString file; e=xml->createElement("vob"); file=TQString("k9copy --play --input %1 --dvdtitle %2 %3 %4 %5 %6 --vampsfactor %7 --inputsize %8 --chaptersize %9 ") - .tqarg(DVD->getDevice()) - .tqarg(title->getnumTitle()) - .tqarg(sChapter) - .tqarg(sCell) - .tqarg(caud) - .tqarg(csub) - .tqarg(titleFactor,0,'f',2) - .tqarg(itotSize,0,'f',0) - .tqarg(chapterSize,0,'f',0); + .arg(DVD->getDevice()) + .arg(title->getnumTitle()) + .arg(sChapter) + .arg(sCell) + .arg(caud) + .arg(csub) + .arg(titleFactor,0,'f',2) + .arg(itotSize,0,'f',0) + .arg(chapterSize,0,'f',0); if (m_firsttitle) { file +=" --initstatus "; m_firsttitle=false; @@ -364,9 +364,9 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { file +=" --ffactor "; } file +=TQString(" --inject %1 --totalsize %2 --dvdsize %3 |") - .tqarg(inject) - .tqarg(m_totalSize -m_forced ,0,'f',0) - .tqarg(((uint64_t)k9DVDSize::getMaxSize() *1024 *1024) - m_forcedsh,0,'f',0); + .arg(inject) + .arg(m_totalSize -m_forced ,0,'f',0) + .arg(((uint64_t)k9DVDSize::getMaxSize() *1024 *1024) - m_forcedsh,0,'f',0); e.setAttribute("file",file); if (first) @@ -387,7 +387,7 @@ void k9DVDAuthor::addTitle(TQDomElement &root, k9DVDTitle *title) { c.sprintf("g1=%d;\ncall vmgm menu;",DVD->getnewTitleNum(l_next)); if( DVD->getnewTitleNum(l_next)==-1) { error=true; - c=i18n("'%1' not selected").tqarg(l_next->getname()); + c=i18n("'%1' not selected").arg(l_next->getname()); KMessageBox::error( 0, c, tr2i18n("authoring")); } @@ -411,7 +411,7 @@ void k9DVDAuthor::setworkDir( const TQString& _newVal) { void k9DVDAuthor::author() { if ( ! k9Tools::checkProgram("dvdauthor")) { - KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").tqarg("dvdauthor") , i18n("authoring")); + KMessageBox::error (tqApp->mainWidget(),i18n("Unable to run %1").arg("dvdauthor") , i18n("authoring")); error = TRUE; return; } @@ -505,7 +505,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { // m_copied+=totalBytes - m_lastPos; m_copied=totalBytes; m_lastPos=totalBytes; - //qDebug(TQString("copied : %1 totalSize : %2").tqarg(m_copied).tqarg(m_totalSize*512)); + //qDebug(TQString("copied : %1 totalSize : %2").arg(m_copied).arg(m_totalSize*512)); m_percent=(float)m_copied / (float)(m_totalSize/DVD_VIDEO_LB_LEN ); |