branchitem.cpp
changeset 755 ed5b407975b3
parent 754 db0ec4bcf416
child 756 a8a5c7288f57
     1.1 --- a/branchitem.cpp	Mon Apr 20 10:42:05 2009 +0000
     1.2 +++ b/branchitem.cpp	Thu Apr 23 12:15:31 2009 +0000
     1.3 @@ -307,3 +307,17 @@
     1.4  	return (BranchObj*)lmo;
     1.5  }
     1.6  
     1.7 +BranchObj* BranchItem::createMapObj(QGraphicsScene *scene)	
     1.8 +{
     1.9 +	// Initialize BranchObj, order of things is important...
    1.10 +	cout << "BI::createMO scene="<<scene<<endl;
    1.11 +    BranchObj* newbo=new BranchObj(scene);
    1.12 +    newbo->setParObj(parent()->getLMO() );
    1.13 +	newbo->setTreeItem (this);
    1.14 +	newbo->setDefAttr(BranchObj::NewBranch);
    1.15 +	//newbo->updateLink();
    1.16 +
    1.17 +	lmo=newbo;
    1.18 +	return newbo;
    1.19 +}
    1.20 +