diff -r 2876353ea150 -r d251c7b2de54 linkablemapobj.cpp --- a/linkablemapobj.cpp Wed Sep 23 12:14:08 2009 +0000 +++ b/linkablemapobj.cpp Thu Oct 01 11:28:50 2009 +0000 @@ -39,6 +39,7 @@ void LinkableMapObj::delLink() { + //bottomline->hide(); switch (style) { case Line: @@ -62,6 +63,7 @@ { parObj=NULL; parObjTmpBuf=NULL; + tmpParent=false; parPos=QPointF(0,0); childPos=QPointF(0,0); link2ParPos=false; @@ -78,6 +80,8 @@ pen.setWidth (1); pen.setColor (linkcolor); pen.setCapStyle ( Qt::RoundCap ); + + useBottomline=true; bottomline=scene->addLine(QLineF(1,1,1,1),pen); bottomline->setZValue(Z_LINK); bottomline->show(); @@ -116,8 +120,7 @@ bool LinkableMapObj::hasParObjTmp() { - if (parObjTmpBuf) return true; - return false; + return tmpParent; } void LinkableMapObj::setUseRelPos (const bool &b) @@ -205,7 +208,6 @@ void LinkableMapObj::setLinkStyle(Style newstyle) { - //if (newstyle==style) return; FIXME-3 delLink(); style=newstyle; @@ -368,7 +370,11 @@ if (visnow) { - bottomline->show(); + if (useBottomline) + bottomline->show(); + else + bottomline->hide(); + switch (style) { case Line: @@ -477,7 +483,6 @@ double vy=p2y - p1y; // Draw the horizontal line below heading (from ChildPos to ParPos) - //bottomline->prepareGeometryChange(); bottomline->setLine (QLine (qRound(childPos.x()), qRound(childPos.y()), qRound(p1x),