imageitem.cpp
changeset 791 f1006de05c54
parent 790 133e2ed6b9c5
child 798 d251c7b2de54
     1.1 --- a/imageitem.cpp	Thu Sep 03 08:52:00 2009 +0000
     1.2 +++ b/imageitem.cpp	Mon Sep 07 15:36:57 2009 +0000
     1.3 @@ -38,6 +38,12 @@
     1.4  	return imageType;
     1.5  }
     1.6  
     1.7 +void ImageItem::load(const QPixmap &pm)
     1.8 +{
     1.9 +	pixmap=pm;
    1.10 +	if (lmo) ((FloatImageObj*)lmo)->load (pixmap);
    1.11 +}
    1.12 +
    1.13  bool ImageItem::load(const QString &fname)
    1.14  {
    1.15  	bool ok=pixmap.load (fname);