diff -r 608f976aa7bb -r 494a5b8c131e imageobj.h --- a/imageobj.h Tue Jun 06 14:58:11 2006 +0000 +++ b/imageobj.h Wed Apr 25 16:02:54 2007 +0000 @@ -1,33 +1,20 @@ #ifndef IMAGEOBJ_H #define IMAGEOBJ_H -#include -#include -#include -//Added by qt3to4: -#include +#include +#include -#include "mapobj.h" - -enum ImageType {qimage,qpixmap,undef}; - -class ImageObj: public Q3CanvasRectangle +class ImageObj: public QGraphicsPixmapItem { public: - ImageObj( Q3Canvas *canvas ); + ImageObj( QGraphicsScene *); ~ImageObj(); - virtual void copy (ImageObj*); - virtual void setVisibility(bool); + void copy (ImageObj*); + void setVisibility(bool); void save (const QString &, const char *); bool load (const QString &); - bool load (QPixmap); - void setImage(QImage img); - QPixmap getPixmap(); -protected: - void drawShape( QPainter & ); + bool load (const QPixmap &); private: - QImage image; - QPixmap pixmap; - ImageType type; + QGraphicsScene *mapScene; }; #endif