summaryrefslogtreecommitdiffstats
path: root/kuickshow/src/kuickimage.cpp
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 /kuickshow/src/kuickimage.cpp
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 'kuickshow/src/kuickimage.cpp')
-rw-r--r--kuickshow/src/kuickimage.cpp16
1 files changed, 8 insertions, 8 deletions
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<QRgb**>( 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;