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 --- kuickshow/src/kuickimage.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kuickshow/src/kuickimage.cpp') diff --git a/kuickshow/src/kuickimage.cpp b/kuickshow/src/kuickimage.cpp index 29e5de1c..36fa97c2 100644 --- a/kuickshow/src/kuickimage.cpp +++ b/kuickshow/src/kuickimage.cpp @@ -1,7 +1,7 @@ #include "kuickimage.h" KuickImage::KuickImage( const KuickFile * file, ImlibImage *im, ImlibData *id) - : QObject( 0L, 0L ) + : TQObject( 0L, 0L ) { myFile = file; myOrigIm = 0L; @@ -212,9 +212,9 @@ bool KuickImage::smoothResize( int newWidth, int newHeight ) { // qDebug("-- smoothResize: %i x %i", newWidth, newHeight); - QImage *image = newQImage(); - // Note: QImage::ScaleMin seems to have a bug (off-by-one, sometimes results in width being 1 pixel too small) - QImage scaledImage = image->smoothScale(newWidth, newHeight, QImage::ScaleFree); + TQImage *image = newQImage(); + // Note: TQImage::ScaleMin seems to have a bug (off-by-one, sometimes results in width being 1 pixel too small) + TQImage scaledImage = image->smoothScale(newWidth, newHeight, TQImage::ScaleFree); delete image; @@ -235,7 +235,7 @@ bool KuickImage::smoothResize( int newWidth, int newHeight ) return false; } -QImage * KuickImage::newQImage() const +TQImage * KuickImage::newQImage() const { ImlibImage *im; @@ -255,7 +255,7 @@ QImage * KuickImage::newQImage() const int w = im->rgb_width; int h = im->rgb_height; - QImage *image = new QImage( w, h, 32 ); + TQImage *image = new TQImage( w, h, 32 ); uchar *rgb = im->rgb_data; QRgb **destImageData = reinterpret_cast( image->jumpTable() ); @@ -282,7 +282,7 @@ QImage * KuickImage::newQImage() const return image; } -ImlibImage * KuickImage::toImage( ImlibData *id, QImage& image ) +ImlibImage * KuickImage::toImage( ImlibData *id, TQImage& image ) { if ( image.isNull() ) return 0L; @@ -339,7 +339,7 @@ bool KuickImage::smoothResize( int newWidth, int newHeight ) // int w = myOrigWidth; //myViewport.width(); //int h = myOrigHeight; //myViewport.height(); - //QImage dst(w, h, myIm->depth(), myIm->numColors(), myIm->bitOrder()); + //TQImage dst(w, h, myIm->depth(), myIm->numColors(), myIm->bitOrder()); //QRgb *scanline; -- cgit v1.2.1