1.8.66 Various fixes
authorinsilmaril
Mon, 12 Feb 2007 09:28:46 +0000
changeset 426e0a3449f4458
parent 425 7014be3ac7d0
child 427 fb74fa7bfb4c
1.8.66 Various fixes
imageobj.cpp
     1.1 --- a/imageobj.cpp	Mon Feb 12 09:28:46 2007 +0000
     1.2 +++ b/imageobj.cpp	Mon Feb 12 09:28:46 2007 +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  }