summaryrefslogtreecommitdiffstats
path: root/kfaxview/faxrenderer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kfaxview/faxrenderer.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kfaxview/faxrenderer.cpp')
-rw-r--r--kfaxview/faxrenderer.cpp20
1 files changed, 10 insertions, 10 deletions
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("<qt><strong>File error.</strong> The specified file '%1' does not exist.</qt>").arg(filename),
+ KMessageBox::error( tqparentWidget,
+ i18n("<qt><strong>File error.</strong> The specified file '%1' does not exist.</qt>").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("<qt><strong>File error.</strong> The specified file '%1' could not be loaded.</qt>").arg(filename),
+ KMessageBox::error( tqparentWidget,
+ i18n("<qt><strong>File error.</strong> The specified file '%1' could not be loaded.</qt>").tqarg(filename),
i18n("File Error"));
else
- KMessageBox::detailedError( parentWidget,
- i18n("<qt><strong>File error.</strong> The specified file '%1' could not be loaded.</qt>").arg(filename),
+ KMessageBox::detailedError( tqparentWidget,
+ i18n("<qt><strong>File error.</strong> The specified file '%1' could not be loaded.</qt>").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();