floatobj.cpp
changeset 180 60e2297bab39
parent 160 72cc3873306a
child 218 160459d924a1
     1.1 --- a/floatobj.cpp	Mon Sep 05 11:56:31 2005 +0000
     1.2 +++ b/floatobj.cpp	Tue Jan 24 15:09:48 2006 +0000
     1.3 @@ -66,11 +66,25 @@
     1.4  	else
     1.5  		relPos.setX (absPos.x() - parObj->x() );
     1.6  	relPos.setY (absPos.y() - parObj->y() );
     1.7 +	if (parObj)
     1.8 +	{	
     1.9 +		parObj->calcBBoxSize();
    1.10 +		parObj->requestReposition();
    1.11 +	}	
    1.12  }
    1.13  
    1.14  void FloatObj::setRelPos(const QPoint &p)
    1.15  {
    1.16  	relPos=p;
    1.17 +	if (parObj)
    1.18 +	{	parObj->calcBBoxSize();
    1.19 +		parObj->requestReposition();
    1.20 +	}	
    1.21 +}
    1.22 +
    1.23 +QPoint FloatObj::getRelPos ()
    1.24 +{
    1.25 +	return relPos;
    1.26  }
    1.27  
    1.28  void FloatObj::setZ(const int &i)
    1.29 @@ -141,12 +155,7 @@
    1.30  void FloatObj::select()
    1.31  {
    1.32      LinkableMapObj::select();
    1.33 -	// Temporary draw the link while FO is selected
    1.34 -	if (style==StyleUndef) 
    1.35 -	{
    1.36 -		setLinkStyle(getDefLinkStyle());
    1.37 -		setLinkColor(parObj->getLinkColor());
    1.38 -	}	
    1.39 +	setLinkColor(parObj->getLinkColor());
    1.40  
    1.41  	// Update FloatExport switch in context menu
    1.42  	if (floatExport)
    1.43 @@ -160,6 +169,5 @@
    1.44  void FloatObj::unselect()
    1.45  {
    1.46  	LinkableMapObj::unselect();
    1.47 -	setLinkStyle (StyleUndef);
    1.48  }
    1.49