summaryrefslogtreecommitdiffstats
path: root/kpdf/core/generator_kimgio
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kpdf/core/generator_kimgio
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-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 'kpdf/core/generator_kimgio')
-rw-r--r--kpdf/core/generator_kimgio/generator_kimgio.cpp12
-rw-r--r--kpdf/core/generator_kimgio/generator_kimgio.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/kpdf/core/generator_kimgio/generator_kimgio.cpp b/kpdf/core/generator_kimgio/generator_kimgio.cpp
index bb754686..82491ddc 100644
--- a/kpdf/core/generator_kimgio/generator_kimgio.cpp
+++ b/kpdf/core/generator_kimgio/generator_kimgio.cpp
@@ -7,8 +7,8 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include <kprinter.h>
#include "core/page.h"
@@ -23,9 +23,9 @@ KIMGIOGenerator::~KIMGIOGenerator()
delete m_pix;
}
-bool KIMGIOGenerator::loadDocument( const QString & fileName, QValueVector<KPDFPage*> & pagesVector )
+bool KIMGIOGenerator::loadDocument( const TQString & fileName, TQValueVector<KPDFPage*> & pagesVector )
{
- m_pix = new QPixmap(fileName);
+ m_pix = new TQPixmap(fileName);
pagesVector.resize( 1 );
@@ -42,7 +42,7 @@ bool KIMGIOGenerator::canGeneratePixmap()
void KIMGIOGenerator::generatePixmap( PixmapRequest * request )
{
- QPixmap *p = new QPixmap(*m_pix);
+ TQPixmap *p = new TQPixmap(*m_pix);
request->page->setPixmap(request->id, p);
}
@@ -66,7 +66,7 @@ void KIMGIOGenerator::putFontInfo( KListView * )
bool KIMGIOGenerator::print( KPrinter& printer )
{
- QPainter p(&printer);
+ TQPainter p(&printer);
p.drawPixmap(0, 0, *m_pix);
return true;
}
diff --git a/kpdf/core/generator_kimgio/generator_kimgio.h b/kpdf/core/generator_kimgio/generator_kimgio.h
index bda411f2..2e4606a7 100644
--- a/kpdf/core/generator_kimgio/generator_kimgio.h
+++ b/kpdf/core/generator_kimgio/generator_kimgio.h
@@ -19,7 +19,7 @@ class KIMGIOGenerator : public Generator
virtual ~KIMGIOGenerator();
// [INHERITED] load a document and fill up the pagesVector
- bool loadDocument( const QString & fileName, QValueVector<KPDFPage*> & pagesVector );
+ bool loadDocument( const TQString & fileName, TQValueVector<KPDFPage*> & pagesVector );
// [INHERITED] perform actions on document / pages
bool canGeneratePixmap();
@@ -37,7 +37,7 @@ class KIMGIOGenerator : public Generator
bool print( KPrinter& printer );
private:
- QPixmap *m_pix;
+ TQPixmap *m_pix;
};
#endif