diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kfaxview/faxrenderer.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfaxview/faxrenderer.cpp')
-rw-r--r-- | kfaxview/faxrenderer.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kfaxview/faxrenderer.cpp b/kfaxview/faxrenderer.cpp index ec18d431..3e597863 100644 --- a/kfaxview/faxrenderer.cpp +++ b/kfaxview/faxrenderer.cpp @@ -23,8 +23,8 @@ #include <kmessagebox.h> #include <kdebug.h> #include <klocale.h> -#include <qfileinfo.h> -#include <qpainter.h> +#include <tqfileinfo.h> +#include <tqpainter.h> #include "documentWidget.h" #include "faxrenderer.h" @@ -32,7 +32,7 @@ //#define KF_DEBUG -FaxRenderer::FaxRenderer(QWidget* par) +FaxRenderer::FaxRenderer(TQWidget* par) : DocumentRenderer(par) { #ifdef KF_DEBUG @@ -81,11 +81,11 @@ void FaxRenderer::drawPage(double resolution, RenderedDocumentPage* page) return; } - QImage img = fax.page(page->getPageNumber() - 1); + TQImage img = fax.page(page->getPageNumber() - 1); SimplePageSize psize = pageSizes[page->getPageNumber() - 1]; if (psize.isValid()) { - QPainter *foreGroundPaint = page->getPainter(); + TQPainter *foreGroundPaint = page->getPainter(); if (foreGroundPaint != 0) { // Compute an image for the page. @@ -113,7 +113,7 @@ void FaxRenderer::drawPage(double resolution, RenderedDocumentPage* page) } -bool FaxRenderer::setFile(const QString &fname, const KURL &) +bool FaxRenderer::setFile(const TQString &fname, const KURL &) { #ifdef KF_DEBUG kdDebug() << "FaxRenderer::setFile(" << fname << ") called" << endl; @@ -132,8 +132,8 @@ bool FaxRenderer::setFile(const QString &fname, const KURL &) // Paranoid saftey checks: make sure the file actually exists, and // that it is a file, not a directory. Otherwise, show an error // message and exit.. - QFileInfo fi(fname); - QString filename = fi.absFilePath(); + 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), @@ -179,8 +179,8 @@ bool FaxRenderer::setFile(const QString &fname, const KURL &) if (numPages != 0) { for(Q_UINT16 pg=0; pg < numPages; pg++) { - QSize pageSize = fax.page_size(pg); - QPoint dpi = fax.page_dpi(pg); + TQSize pageSize = fax.page_size(pg); + TQPoint dpi = fax.page_dpi(pg); double dpix = dpi.x(); double dpiy = dpi.y(); |