diff options
Diffstat (limited to 'src/komposeimage.cpp')
-rw-r--r-- | src/komposeimage.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/komposeimage.cpp b/src/komposeimage.cpp index c542796..9713191 100644 --- a/src/komposeimage.cpp +++ b/src/komposeimage.cpp @@ -16,7 +16,7 @@ KomposeImage::KomposeImage( Imlib_Image& im ) - : QObject( 0L, 0L ), + : TQObject( 0L, 0L ), bhasImage(true), bhasSourcePixmap(false), lasteffect( IEFFECT_NONE ), @@ -34,7 +34,7 @@ KomposeImage::KomposeImage( Imlib_Image& im ) KomposeImage::KomposeImage() - : QObject( 0L, 0L ), + : TQObject( 0L, 0L ), bhasImage(false), bhasSourcePixmap(false), lasteffect( IEFFECT_NONE ), @@ -66,7 +66,7 @@ void KomposeImage::clearCached() if ( !KomposeSettings::instance()->getCacheScaledPixmaps() ) { - myQPixmap.resize(0,0); + myTQPixmap.resize(0,0); myIsDirty = true; } } @@ -76,7 +76,7 @@ void KomposeImage::init() myOrigWidth = myWidth; myOrigHeight = myHeight; - myQPixmap.setOptimization( QPixmap::BestOptim ); + myTQPixmap.setOptimization( TQPixmap::BestOptim ); // Create highlight color modifier cmHighlight = imlib_create_color_modifier(); @@ -103,16 +103,16 @@ void KomposeImage::setImage( Imlib_Image &im ) imlib_context_set_image( myIm ); myOrigWidth = imlib_image_get_width(); myOrigHeight = imlib_image_get_height(); - qDebug("KomposeTask::setImage() - Set Image: size:" << myWidth << "x" << myHeight << endl; + tqDebug("KomposeTask::setImage() - Set Image: size:" << myWidth << "x" << myHeight << endl; } myIsDirty = true; bhasImage = true; } -void KomposeImage::setImage( QPixmap &pm ) +void KomposeImage::setImage( TQPixmap &pm ) { - mySourceQPixmap = pm; + mySourceTQPixmap = pm; bhasSourcePixmap = true; myOrigWidth = pm.width(); @@ -126,23 +126,23 @@ void KomposeImage::createImageFromPixmap() if ( !bhasSourcePixmap ) return; - qDebug("KomposeImage::createImageFromPixmap()"); - imlib_context_set_drawable( mySourceQPixmap.handle() ); + tqDebug("KomposeImage::createImageFromPixmap()"); + imlib_context_set_drawable( mySourceTQPixmap.handle() ); if ( !KomposeSettings::instance()->getImageEffects() ) { - Imlib_Image img = imlib_create_image_from_drawable((Pixmap)0, 0, 0, mySourceQPixmap.width(), mySourceQPixmap.height(), 1); + Imlib_Image img = imlib_create_image_from_drawable((Pixmap)0, 0, 0, mySourceTQPixmap.width(), mySourceTQPixmap.height(), 1); setImage( img ); } else { - Imlib_Image imgOrig = imlib_create_image_from_drawable((Pixmap)0, 0, 0, mySourceQPixmap.width(), mySourceQPixmap.height(), 1); + Imlib_Image imgOrig = imlib_create_image_from_drawable((Pixmap)0, 0, 0, mySourceTQPixmap.width(), mySourceTQPixmap.height(), 1); imlib_context_set_anti_alias(1); imlib_context_set_image( imgOrig ); - Imlib_Image img = imlib_create_cropped_scaled_image(0, 0, mySourceQPixmap.width(), mySourceQPixmap.height(), myWidth, myHeight); + Imlib_Image img = imlib_create_cropped_scaled_image(0, 0, mySourceTQPixmap.width(), mySourceTQPixmap.height(), myWidth, myHeight); imlib_free_image(); setImage( img ); @@ -166,7 +166,7 @@ void KomposeImage::resize( int width, int height ) myIsDirty = true; } -QPixmap* KomposeImage::qpixmap( int effect ) +TQPixmap* KomposeImage::qpixmap( int effect ) { if ( KomposeSettings::instance()->getImageEffects() && (lasteffect != effect ) ) { @@ -177,7 +177,7 @@ QPixmap* KomposeImage::qpixmap( int effect ) if ( myIsDirty) renderPixmap(); - return &myQPixmap; + return &myTQPixmap; } @@ -194,7 +194,7 @@ void KomposeImage::renderPixmap() else if ( !bhasImage && !bhasSourcePixmap ) return; - qDebug("KomposeImage::renderPixmap() - Creating %dx%d pixmap", myWidth, myHeight); + tqDebug("KomposeImage::renderPixmap() - Creating %dx%d pixmap", myWidth, myHeight); imlib_context_set_image( myIm ); imlib_image_set_has_alpha(0); @@ -202,9 +202,9 @@ void KomposeImage::renderPixmap() if ( KomposeSettings::instance()->getImageEffects() ) applyEffect(); - myQPixmap.resize( myWidth, myHeight); + myTQPixmap.resize( myWidth, myHeight); - imlib_context_set_drawable(myQPixmap.handle()); + imlib_context_set_drawable(myTQPixmap.handle()); imlib_context_set_anti_alias(1); imlib_render_image_on_drawable_at_size(0, 0, myWidth, myHeight); |