xml.cpp
changeset 410 ceb4532eae34
parent 407 5db8dfd30ea2
child 412 8059b6aa74d7
     1.1 --- a/xml.cpp	Thu Nov 23 16:18:26 2006 +0000
     1.2 +++ b/xml.cpp	Fri Dec 08 20:18:58 2006 +0000
     1.3 @@ -87,7 +87,7 @@
     1.4  			if (!atts.value( "backgroundColor").isEmpty() )
     1.5  			{
     1.6  				col.setNamedColor(atts.value("backgroundColor"));
     1.7 -				mc->getCanvas()->setBackgroundColor(col);
     1.8 +				mc->getScene()->setBackgroundBrush(col);
     1.9  			}	    
    1.10  			if (!atts.value( "linkColorHint").isEmpty() ) 
    1.11  			{
    1.12 @@ -590,7 +590,7 @@
    1.13  			lastFloat->setFloatExport (false);
    1.14  	}	
    1.15  	if (!a.value( "zPlane").isEmpty() ) 
    1.16 -		lastFloat->setZ (a.value("zPlane").toInt ());
    1.17 +		lastFloat->setZValue (a.value("zPlane").toInt ());
    1.18      int x,y;
    1.19      bool okx,oky;
    1.20  	if (!a.value( "relPosX").isEmpty() ) 
    1.21 @@ -627,7 +627,7 @@
    1.22  	QColor col;
    1.23  	bool okx;
    1.24  	bool success=false;
    1.25 -	XLinkObj *xlo=new XLinkObj (mc->getCanvas());
    1.26 +	XLinkObj *xlo=new XLinkObj (mc->getScene());
    1.27  	if (!a.value( "color").isEmpty() ) 
    1.28  	{
    1.29  		col.setNamedColor(a.value("color"));