1.1 --- a/linkablemapobj.cpp Mon Apr 20 10:42:05 2009 +0000
1.2 +++ b/linkablemapobj.cpp Thu Apr 23 12:15:31 2009 +0000
1.3 @@ -59,7 +59,6 @@
1.4 {
1.5 model=NULL;
1.6
1.7 - depth=-1;
1.8 childObj=NULL;
1.9 parObj=NULL;
1.10 parObjTmpBuf=NULL;
1.11 @@ -212,6 +211,7 @@
1.12 //return UndefinedStyle;
1.13 }
1.14 Style ls=model->getMapLinkStyle();
1.15 + int depth=treeItem->depth();
1.16 if (depth==0) return UndefinedStyle;
1.17 switch (ls)
1.18 {
1.19 @@ -360,7 +360,7 @@
1.20 break;
1.21 default:
1.22 break;
1.23 - } // switch (style)
1.24 + }
1.25 }
1.26
1.27 QColor LinkableMapObj::getLinkColor()
1.28 @@ -577,7 +577,7 @@
1.29 num=part.right(part.length() - 3);
1.30 if (typ=="mc:")
1.31 {
1.32 - if (depth>0)
1.33 + if (treeItem->depth()>0)
1.34 return false; // in a subtree there is no center
1.35 else
1.36 break;
1.37 @@ -621,11 +621,6 @@
1.38 return orientation;
1.39 }
1.40
1.41 -int LinkableMapObj::getDepth()
1.42 -{
1.43 - return depth;
1.44 -}
1.45 -
1.46 QPointF LinkableMapObj::getRandPos()
1.47 {
1.48 // Choose a random position with given distance to parent: