diff -r 58adc2d2ed08 -r 0e1aeb21cb78 imageobj.cpp --- a/imageobj.cpp Wed May 04 20:35:39 2005 +0000 +++ b/imageobj.cpp Mon Oct 16 12:42:54 2006 +0000 @@ -1,10 +1,12 @@ #include "imageobj.h" +//Added by qt3to4: +#include ///////////////////////////////////////////////////////////////// // ImageObj ///////////////////////////////////////////////////////////////// -ImageObj::ImageObj( QCanvas *canvas ) - : QCanvasRectangle( canvas ) +ImageObj::ImageObj( Q3Canvas *canvas ) + : Q3CanvasRectangle( canvas ) { // cout << "Const ImageObj (canvas)\n"; setZ(Z_ICON); @@ -54,7 +56,7 @@ type=qimage; #if !defined(Q_WS_QWS) - pixmap.convertFromImage(image, OrderedAlphaDither); + pixmap.convertFromImage(image, Qt::OrderedAlphaDither); #endif return true; } @@ -78,7 +80,7 @@ { type=qimage; image=img; - pixmap.convertFromImage(image, OrderedAlphaDither); + pixmap.convertFromImage(image, Qt::OrderedAlphaDither); } QPixmap ImageObj::getPixmap() @@ -91,7 +93,7 @@ // On Qt/Embedded, we can paint a QImage as fast as a QPixmap, // but on other platforms, we need to use a QPixmap. #if defined(Q_WS_QWS) - p.drawImage( int(x()), int(y()), image, 0, 0, -1, -1, OrderedAlphaDither ); + p.drawImage( int(x()), int(y()), image, 0, 0, -1, -1, Qt::OrderedAlphaDither ); #else p.drawPixmap( int(x()), int(y()), pixmap ); #endif