From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfaxview/faxrenderer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kfaxview/faxrenderer.cpp') diff --git a/kfaxview/faxrenderer.cpp b/kfaxview/faxrenderer.cpp index 3e597863..ec21ca06 100644 --- a/kfaxview/faxrenderer.cpp +++ b/kfaxview/faxrenderer.cpp @@ -36,7 +36,7 @@ FaxRenderer::FaxRenderer(TQWidget* par) : DocumentRenderer(par) { #ifdef KF_DEBUG - kdError() << "FaxRenderer( parent=" << par << " )" << endl; + kdError() << "FaxRenderer( tqparent=" << par << " )" << endl; #endif } @@ -96,8 +96,8 @@ void FaxRenderer::drawPage(double resolution, RenderedDocumentPage* page) // problems occur if KViewShell required a shrunken version of // the page, e.g. to print multiple pages on one sheet of paper. - int width_in_pixel = qRound(resolution * psize.width().getLength_in_inch()); - int height_in_pixel = qRound(resolution * psize.height().getLength_in_inch()); + int width_in_pixel = tqRound(resolution * psize.width().getLength_in_inch()); + int height_in_pixel = tqRound(resolution * psize.height().getLength_in_inch()); img = img.smoothScale(width_in_pixel, height_in_pixel); foreGroundPaint->drawImage(0, 0, img); @@ -135,8 +135,8 @@ bool FaxRenderer::setFile(const TQString &fname, const KURL &) TQFileInfo fi(fname); TQString filename = fi.absFilePath(); if (!fi.exists() || fi.isDir()) { - KMessageBox::error( parentWidget, - i18n("File error. The specified file '%1' does not exist.").arg(filename), + KMessageBox::error( tqparentWidget, + i18n("File error. The specified file '%1' does not exist.").tqarg(filename), i18n("File Error")); // the return value 'false' indicates that this operation was not successful. mutex.unlock(); @@ -156,12 +156,12 @@ bool FaxRenderer::setFile(const TQString &fname, const KURL &) // leaving an error message in fax.errorString(). We try to handle // this case gracefully. if (fax.errorString().isEmpty()) - KMessageBox::error( parentWidget, - i18n("File error. The specified file '%1' could not be loaded.").arg(filename), + KMessageBox::error( tqparentWidget, + i18n("File error. The specified file '%1' could not be loaded.").tqarg(filename), i18n("File Error")); else - KMessageBox::detailedError( parentWidget, - i18n("File error. The specified file '%1' could not be loaded.").arg(filename), + KMessageBox::detailedError( tqparentWidget, + i18n("File error. The specified file '%1' could not be loaded.").tqarg(filename), fax.errorString(), i18n("File Error")); clear(); @@ -178,7 +178,7 @@ bool FaxRenderer::setFile(const TQString &fname, const KURL &) Length w,h; if (numPages != 0) { - for(Q_UINT16 pg=0; pg < numPages; pg++) { + for(TQ_UINT16 pg=0; pg < numPages; pg++) { TQSize pageSize = fax.page_size(pg); TQPoint dpi = fax.page_dpi(pg); double dpix = dpi.x(); -- cgit v1.2.3