linkablemapobj.cpp
changeset 427 fb74fa7bfb4c
parent 412 8059b6aa74d7
child 442 dfbc371b7280
     1.1 --- a/linkablemapobj.cpp	Mon Feb 12 09:28:46 2007 +0000
     1.2 +++ b/linkablemapobj.cpp	Mon Feb 12 09:28:47 2007 +0000
     1.3 @@ -500,6 +500,7 @@
     1.4  	double vy=p2y - p1y;
     1.5  
     1.6  	// Draw the horizontal line below heading (from ChildPos to ParPos)
     1.7 +	//bottomline->prepareGeometryChange();
     1.8  	bottomline->setLine (QLine (qRound(childPos.x()),
     1.9  		qRound(childPos.y()),
    1.10  		qRound(p1x),
    1.11 @@ -517,6 +518,7 @@
    1.12  	switch (style)
    1.13  	{
    1.14  		case StyleLine:
    1.15 +			//l->prepareGeometryChange();
    1.16  			l->setLine( QLine(qRound (parPos.x()),
    1.17  				qRound(parPos.y()),
    1.18  				qRound(p2x),
    1.19 @@ -525,13 +527,17 @@
    1.20  		case StyleParabel:	
    1.21  			parabel (pa0, p1x,p1y,p2x,p2y);
    1.22  			for (int i=0; i<segment.size(); ++i)
    1.23 +			{
    1.24 +				//segment.at(i)->prepareGeometryChange();
    1.25  				segment.at(i)->setLine(QLineF( pa0.at(i).x(), pa0.at(i).y(),pa0.at(i+1).x(),pa0.at(i+1).y()));
    1.26 +			}	
    1.27  			break;
    1.28  		case StylePolyLine:
    1.29  			pa0.clear();
    1.30  			pa0<<QPointF (qRound(p2x+tp.x()), qRound(p2y+tp.y()));
    1.31  			pa0<<QPointF (qRound(p2x-tp.x()), qRound(p2y-tp.y()));
    1.32  			pa0<<QPointF (qRound (parPos.x()), qRound(parPos.y()) );
    1.33 +			//p->prepareGeometryChange();
    1.34  			p->setPolygon(QPolygonF (pa0));
    1.35  			break;
    1.36  		case StylePolyParabel:	
    1.37 @@ -542,6 +548,7 @@
    1.38  				pa0 << QPointF (pa1.at(i));
    1.39  			for (int i=0;i<=arcsegs;i++)
    1.40  				pa0 << QPointF (pa2.at(arcsegs-i));
    1.41 +			//p->prepareGeometryChange();
    1.42  			p->setPolygon(QPolygonF (pa0));
    1.43  			break;
    1.44  		default:
    1.45 @@ -682,6 +689,7 @@
    1.46  
    1.47  void LinkableMapObj::setSelBox()
    1.48  {
    1.49 +	//selbox->prepareGeometryChange();
    1.50  	selbox->setRect (clickBox);
    1.51  }
    1.52