4 /////////////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////////////
7 ImageObj::ImageObj( QGraphicsItem *parent) : QGraphicsPixmapItem (parent )
9 // qDebug() << "Const ImageObj (scene)";
11 setShapeMode (QGraphicsPixmapItem::BoundingRectShape);
12 setZValue(dZ_FLOATIMG);
18 // qDebug() << "Destr ImageObj";
21 void ImageObj::copy(ImageObj* other)
23 prepareGeometryChange();
24 setVisibility (other->isVisible() );
25 setPixmap (other->QGraphicsPixmapItem::pixmap());
26 setPos (other->pos());
29 void ImageObj::setVisibility (bool v)
37 void ImageObj::save(const QString &fn, const char *format)
39 pixmap().save (fn,format,100);
42 bool ImageObj::load (const QString &fn)
47 prepareGeometryChange();
54 bool ImageObj::load (const QPixmap &pm)
56 prepareGeometryChange();