4 /////////////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////////////
7 ImageObj::ImageObj( QGraphicsScene *scene) : QGraphicsPixmapItem (NULL,scene )
9 // cout << "Const ImageObj (scene)\n";
11 setShapeMode (QGraphicsPixmapItem::BoundingRectShape);
19 // cout << "Destr ImageObj\n";
22 void ImageObj::copy(ImageObj* other)
24 prepareGeometryChange();
25 setVisibility (other->isVisible() );
26 setPixmap (other->QGraphicsPixmapItem::pixmap());
27 setPos (other->pos());
30 void ImageObj::setVisibility (bool v)
38 void ImageObj::save(const QString &fn, const char *format)
40 pixmap().save (fn,format,100);
43 bool ImageObj::load (const QString &fn)
48 prepareGeometryChange();
55 bool ImageObj::load (const QPixmap &pm)
57 prepareGeometryChange();