From ec1fddcd0d6663ad273af85357f04abbc5689468 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:00 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit c2637a0da6d9a1c8626ca39f8451ab3b7cda487a. --- kghostview/kgvdocument.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kghostview/kgvdocument.cpp') diff --git a/kghostview/kgvdocument.cpp b/kghostview/kgvdocument.cpp index bcfc4d2e..89cd7948 100644 --- a/kghostview/kgvdocument.cpp +++ b/kghostview/kgvdocument.cpp @@ -98,7 +98,7 @@ void KGVDocument::doOpenFile() KMessageBox::sorry( _part->widget(), i18n( "Could not open %1: " "File does not exist." ) - .arg( _fileName ) ); + .tqarg( _fileName ) ); emit canceled( TQString() ); return; } @@ -107,7 +107,7 @@ void KGVDocument::doOpenFile() KMessageBox::sorry( _part->widget(), i18n( "Could not open %1: " "Permission denied." ) - .arg( _fileName ) ); + .tqarg( _fileName ) ); emit canceled( TQString() ); return; } @@ -132,7 +132,7 @@ void KGVDocument::doOpenFile() if( _tmpDSC->status() != 0 ) { KMessageBox::error( _part->widget(), i18n( "Could not create temporary file: %1" ) - .arg( strerror( _tmpDSC->status() ) ) ); + .tqarg( strerror( _tmpDSC->status() ) ) ); emit canceled( TQString() ); return; } @@ -159,8 +159,8 @@ void KGVDocument::doOpenFile() "which has type %2. KGhostview can " "only load PostScript (.ps, .eps) and Portable " "Document Format (.pdf) files." ) - .arg( _fileName ) - .arg( _mimetype ) ); + .tqarg( _fileName ) + .tqarg( _mimetype ) ); emit canceled( TQString() ); return; } @@ -190,7 +190,7 @@ bool KGVDocument::uncompressFile() { KMessageBox::error( _part->widget(), i18n( "Could not uncompress %1." ) - .arg( _fileName ) ); + .tqarg( _fileName ) ); emit canceled( TQString() ); return false; } @@ -201,7 +201,7 @@ bool KGVDocument::uncompressFile() { KMessageBox::error( _part->widget(), i18n( "Could not create temporary file: %2" ) - .arg( strerror( _tmpUnzipped->status() ) ) ); + .tqarg( strerror( _tmpUnzipped->status() ) ) ); emit canceled( TQString() ); return false; } @@ -221,7 +221,7 @@ bool KGVDocument::uncompressFile() { KMessageBox::error( _part->widget(), i18n( "Could not uncompress %1." ) - .arg( _fileName ) ); + .tqarg( _fileName ) ); emit canceled( TQString() ); return false; } @@ -239,7 +239,7 @@ void KGVDocument::openPDFFileContinue( bool pdf2dscResult ) { KMessageBox::error( _part->widget(), i18n( "Could not open file %1." ) - .arg( _part->url().url() ) ); + .tqarg( _part->url().url() ) ); emit canceled( TQString() ); return; } @@ -260,8 +260,8 @@ void KGVDocument::openPSFile(const TQString &file) { KMessageBox::error( _part->widget(), i18n( "Error opening file %1: %2" ) - .arg( _part->url().url() ) - .arg( strerror( errno ) ) ); + .tqarg( _part->url().url() ) + .tqarg( strerror( errno ) ) ); emit canceled( "" ); return; } @@ -497,7 +497,7 @@ TQString KGVDocument::pageListToRange( const PageList& pageList ) if( bss == ess ) range += TQString::number( *ess ); else - range += TQString( "%1-%2" ).arg( *bss ).arg( *ess ); + range += TQString( "%1-%2" ).tqarg( *bss ).tqarg( *ess ); bss = it; } @@ -521,7 +521,7 @@ void KGVDocument::print() printer.setOption( "kde-range", pageListToRange( _part->markList()->markList() ) ); - if( printer.setup( _part->widget(), i18n("Print %1").arg(_part->url().fileName()) ) ) + if( printer.setup( _part->widget(), i18n("Print %1").tqarg(_part->url().fileName()) ) ) { KTempFile tf( TQString(), ".ps" ); if( tf.status() == 0 ) @@ -548,7 +548,7 @@ void KGVDocument::print() { printer.setPageSelection( KPrinter::SystemSide ); - if( printer.setup( _part->widget(), i18n("Print %1").arg(_part->url().fileName()) ) ) + if( printer.setup( _part->widget(), i18n("Print %1").tqarg(_part->url().fileName()) ) ) printer.printFiles( _fileName ); } } @@ -775,13 +775,13 @@ void KGVDocument::runPdf2ps( const TQString& pdfName, process << _interpreterPath << "-dNODISPLAY" << "-dTQUIET" - << TQString( "-sPDFname=%1" ).arg( pdfName ) + << TQString( "-sPDFname=%1" ).tqarg( pdfName ) << TQString( "-sDSCnamale locale( "kghostview" ); _fallBackPageMedia = pageSizeToString( static_cast< TQPrinter::PageSize >( locale.pageSize() ) ); _usePageLabels = false; -e=%1" ).arg( dscName ) +e=%1" ).tqarg( dscName ) << "pdf2dsc.ps" << "-c" << "quit"; @@ -823,8 +823,8 @@ void Pdf2dsc::run( const TQString& pdfName, const TQString& dscName ) << "-dDELAYSAFER" << "-dNODISPLAY" << "-dTQUIET" - << TQString( "-sPDFname=%1" ).arg( pdfName ) - << TQString( "-sDSCname=%1" ).arg( dscName ) + << TQString( "-sPDFname=%1" ).tqarg( pdfName ) + << TQString( "-sDSCname=%1" ).tqarg( dscName ) << "-c" << "<< /PermitFileReading [ PDFname ] /PermitFileWriting [ DSCname ] /PermitFileControl [] >> setuserparams .locksafe" << "-f" -- cgit v1.2.1