diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:35:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:35:48 -0600 |
commit | 5183781c5dddd8447b308c24b2d7f9257bd0bcad (patch) | |
tree | f1fa64e82ce281c97cf602ba207460a5d38dcfdd /libk3b/projects/videodvd | |
parent | 09c863183250d07f82c0919e0a40fc7834c32192 (diff) | |
download | k3b-5183781c5dddd8447b308c24b2d7f9257bd0bcad.tar.gz k3b-5183781c5dddd8447b308c24b2d7f9257bd0bcad.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'libk3b/projects/videodvd')
-rw-r--r-- | libk3b/projects/videodvd/k3bvideodvdimager.cpp | 14 | ||||
-rw-r--r-- | libk3b/projects/videodvd/k3bvideodvdjob.cpp | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libk3b/projects/videodvd/k3bvideodvdimager.cpp b/libk3b/projects/videodvd/k3bvideodvdimager.cpp index f175779..3319754 100644 --- a/libk3b/projects/videodvd/k3bvideodvdimager.cpp +++ b/libk3b/projects/videodvd/k3bvideodvdimager.cpp @@ -108,26 +108,26 @@ int K3bVideoDvdImager::writePathSpec() d->tempPath = K3b::findUniqueFilePrefix( "k3bVideoDvd", dir.path() ); kdDebug() << "(K3bVideoDvdImager) creating temp dir: " << d->tempPath << endl; if( !dir.mkdir( d->tempPath, true ) ) { - emit infoMessage( i18n("Unable to create temporary directory '%1'.").tqarg(d->tempPath), ERROR ); + emit infoMessage( i18n("Unable to create temporary directory '%1'.").arg(d->tempPath), ERROR ); return -1; } dir.cd( d->tempPath ); if( !dir.mkdir( "VIDEO_TS" ) ) { - emit infoMessage( i18n("Unable to create temporary directory '%1'.").tqarg(d->tempPath + "/VIDEO_TS"), ERROR ); + emit infoMessage( i18n("Unable to create temporary directory '%1'.").arg(d->tempPath + "/VIDEO_TS"), ERROR ); return -1; } - for( TQPtrListIterator<K3bDataItem> it( d->doc->videoTsDir()->tqchildren() ); *it; ++it ) { + for( TQPtrListIterator<K3bDataItem> it( d->doc->videoTsDir()->children() ); *it; ++it ) { if( (*it)->isDir() ) { - emit infoMessage( i18n("Found invalid entry in the VIDEO_TS folder (%1).").tqarg((*it)->k3bName()), ERROR ); + emit infoMessage( i18n("Found invalid entry in the VIDEO_TS folder (%1).").arg((*it)->k3bName()), ERROR ); return -1; } // convert to upper case names if( ::symlink( TQFile::encodeName( (*it)->localPath() ), TQFile::encodeName( d->tempPath + "/VIDEO_TS/" + (*it)->k3bName().upper() ) ) == -1 ) { - emit infoMessage( i18n("Unable to link temporary file in folder %1.").tqarg( d->tempPath ), ERROR ); + emit infoMessage( i18n("Unable to link temporary file in folder %1.").arg( d->tempPath ), ERROR ); return -1; } } @@ -148,7 +148,7 @@ int K3bVideoDvdImager::writePathSpecForDir( K3bDirItem* dirItem, TQTextStream& s } int num = 0; - for( TQPtrListIterator<K3bDataItem> it( dirItem->tqchildren() ); it.current(); ++it ) { + for( TQPtrListIterator<K3bDataItem> it( dirItem->children() ); it.current(); ++it ) { K3bDataItem* item = it.current(); num++; @@ -195,7 +195,7 @@ void K3bVideoDvdImager::cleanup() if( TQFile::exists( d->tempPath ) ) { TQDir dir( d->tempPath ); dir.cd( "VIDEO_TS" ); - for( TQPtrListIterator<K3bDataItem> it( d->doc->videoTsDir()->tqchildren() ); *it; ++it ) + for( TQPtrListIterator<K3bDataItem> it( d->doc->videoTsDir()->children() ); *it; ++it ) dir.remove( (*it)->k3bName().upper() ); dir.cdUp(); dir.rmdir( "VIDEO_TS" ); diff --git a/libk3b/projects/videodvd/k3bvideodvdjob.cpp b/libk3b/projects/videodvd/k3bvideodvdjob.cpp index 194dff7..9b6a178 100644 --- a/libk3b/projects/videodvd/k3bvideodvdjob.cpp +++ b/libk3b/projects/videodvd/k3bvideodvdjob.cpp @@ -85,14 +85,14 @@ TQString K3bVideoDvdJob::jobDescription() const return i18n("Writing Video DVD") + ( m_doc->isoOptions().volumeID().isEmpty() ? TQString() - : TQString( " (%1)" ).tqarg(m_doc->isoOptions().volumeID()) ); + : TQString( " (%1)" ).arg(m_doc->isoOptions().volumeID()) ); } } TQString K3bVideoDvdJob::jobDetails() const { - return ( i18n("ISO9660/Udf Filesystem (Size: %1)").tqarg(KIO::convertSize( doc()->size() )) + return ( i18n("ISO9660/Udf Filesystem (Size: %1)").arg(KIO::convertSize( doc()->size() )) + ( m_doc->copies() > 1 ? i18n(" - %n copy", " - %n copies", m_doc->copies()) : TQString() ) ); |