From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdvi/TeXFont_PK.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kdvi/TeXFont_PK.cpp') diff --git a/kdvi/TeXFont_PK.cpp b/kdvi/TeXFont_PK.cpp index 6a3c9b3a..7e1ce60d 100644 --- a/kdvi/TeXFont_PK.cpp +++ b/kdvi/TeXFont_PK.cpp @@ -54,10 +54,10 @@ #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -76,7 +76,7 @@ #define PK_MAGIC (PK_PRE << 8) + PK_ID -extern void oops(QString message); +extern void oops(TQString message); @@ -89,7 +89,7 @@ TeXFont_PK::TeXFont_PK(TeXFontDefinition *parent) for(unsigned int i=0; ifilename), "r"); + file = fopen(TQFile::encodeName(parent->filename), "r"); if (file == 0) kdError(4300) << i18n("Cannot open font file %1.").arg(parent->filename) << endl; #ifdef DEBUG_PK @@ -116,7 +116,7 @@ TeXFont_PK::~TeXFont_PK() } -glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QColor& color) +glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const TQColor& color) { #ifdef DEBUG_PK kdDebug(4300) << "TeXFont_PK::getGlyph( ch=" << ch << ", generateCharacterPixmap=" << generateCharacterPixmap << " )" << endl; @@ -158,7 +158,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo } // At this point, g points to a properly loaded character. Generate - // a smoothly scaled QPixmap if the user asks for it. + // a smoothly scaled TQPixmap if the user asks for it. if ((generateCharacterPixmap == true) && ((g->shrunkenCharacter.isNull()) || (color != g->color)) && (characterBitmaps[ch]->w != 0)) { @@ -208,7 +208,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo int shrunk_height = (int)ceil( (characterBitmaps[ch]->h - srcYTrans)/shrinkFactor ); // Turn the image into 8 bit - QByteArray translated(characterBitmaps[ch]->w * characterBitmaps[ch]->h); + TQByteArray translated(characterBitmaps[ch]->w * characterBitmaps[ch]->h); Q_UINT8 *data = (Q_UINT8 *)translated.data(); for(int x=0; xw; x++) for(int y=0; yh; y++) { @@ -219,7 +219,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo } // Now shrink the image. We shrink the X-direction first - QByteArray xshrunk(shrunk_width*characterBitmaps[ch]->h); + TQByteArray xshrunk(shrunk_width*characterBitmaps[ch]->h); Q_UINT8 *xdata = (Q_UINT8 *)xshrunk.data(); // Do the shrinking. The pixel (x,y) that we want to calculate @@ -247,7 +247,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo } // Now shrink the Y-direction - QByteArray xyshrunk(shrunk_width*shrunk_height); + TQByteArray xyshrunk(shrunk_width*shrunk_height); Q_UINT8 *xydata = (Q_UINT8 *)xyshrunk.data(); for(int x=0; xshrunkenCharacter.convertFromImage(im32,0); - g->shrunkenCharacter.setOptimization(QPixmap::BestOptim); + g->shrunkenCharacter.setOptimization(TQPixmap::BestOptim); } return g; } -- cgit v1.2.1