xlinkobj.cpp
changeset 102 dba9303a1a5c
parent 97 0b048b6bb6f4
child 103 c810a11d11d9
     1.1 --- a/xlinkobj.cpp	Wed May 18 07:39:51 2005 +0000
     1.2 +++ b/xlinkobj.cpp	Wed May 18 07:39:58 2005 +0000
     1.3 @@ -38,11 +38,10 @@
     1.4  	visBranch=NULL;
     1.5  	xLinkState=undefinedXLink;
     1.6  
     1.7 -	width=1;
     1.8  	color=QColor (180,180,180);
     1.9  	line=new QCanvasLine (canvas);
    1.10 -	line->setPoints (0,0,200,200);
    1.11 -	line->setPen (QPen(color, 1));
    1.12 +	width=1;
    1.13 +	line->setPen (QPen(color, width));
    1.14  	line->setZ (Z_XLINK);
    1.15  
    1.16  	poly=new QCanvasPolygon (canvas);
    1.17 @@ -55,7 +54,6 @@
    1.18  void XLinkObj::copy (XLinkObj* other)
    1.19  {
    1.20  	// FIXME copy not used yet
    1.21 -	cout << "LO::copy called\n";
    1.22  	MapObj::copy (other);
    1.23  	setVisibility (other->visible);
    1.24  	beginBranch=other->beginBranch;
    1.25 @@ -198,6 +196,7 @@
    1.26  	{
    1.27  		beginPos=a;
    1.28  		endPos=b;
    1.29 +		line->setPen (QPen(color, width));
    1.30  		line->setPoints (a.x(), a.y(), b.x(), b.y());
    1.31  	}
    1.32  }