imageobj.cpp
changeset 764 d0f944a540a1
parent 421 5522d1da7e37
     1.1 --- a/imageobj.cpp	Tue Jan 23 11:50:53 2007 +0000
     1.2 +++ b/imageobj.cpp	Wed May 06 10:02:08 2009 +0000
     1.3 @@ -16,11 +16,12 @@
     1.4  
     1.5  ImageObj::~ImageObj()
     1.6  {
     1.7 -//   cout << "Destr ImageObj\n";
     1.8 + //  cout << "Destr ImageObj\n";
     1.9  }
    1.10  
    1.11  void ImageObj::copy(ImageObj* other)
    1.12  {
    1.13 +	prepareGeometryChange();
    1.14  	setVisibility (other->isVisible() );
    1.15  	setPixmap (other->QGraphicsPixmapItem::pixmap());	
    1.16  	setPos (other->pos());
    1.17 @@ -44,6 +45,7 @@
    1.18  	QPixmap pixmap;
    1.19      if (pixmap.load (fn)) 
    1.20  	{
    1.21 +		prepareGeometryChange();
    1.22  		setPixmap (pixmap);
    1.23  		return true;
    1.24  	}	
    1.25 @@ -52,6 +54,7 @@
    1.26  
    1.27  bool ImageObj::load (const QPixmap &pm)
    1.28  {
    1.29 +	prepareGeometryChange();
    1.30  	setPixmap (pm);
    1.31  	return true;
    1.32  }