linkablemapobj.cpp
changeset 790 133e2ed6b9c5
parent 786 6269016c9905
child 791 f1006de05c54
     1.1 --- a/linkablemapobj.cpp	Mon Aug 24 14:39:07 2009 +0000
     1.2 +++ b/linkablemapobj.cpp	Thu Sep 03 08:52:00 2009 +0000
     1.3 @@ -11,15 +11,17 @@
     1.4  // LinkableMapObj
     1.5  /////////////////////////////////////////////////////////////////
     1.6  
     1.7 +/* FIXME-3
     1.8  LinkableMapObj::LinkableMapObj():MapObj()
     1.9  {
    1.10    //  cout << "Const LinkableMapObj ()\n";
    1.11      init ();
    1.12  }
    1.13 +*/
    1.14  
    1.15 -LinkableMapObj::LinkableMapObj(QGraphicsScene* s) :MapObj(s)
    1.16 +LinkableMapObj::LinkableMapObj(QGraphicsScene* s, TreeItem *ti) :MapObj(s,ti)
    1.17  {
    1.18 -//    cout << "Const LinkableMapObj (s)\n";
    1.19 +//    cout << "Const LinkableMapObj s="<<s<<"  ti="<<ti<<"  treeItem="<<treeItem<<endl;
    1.20      init ();
    1.21  }
    1.22  
    1.23 @@ -86,9 +88,6 @@
    1.24  	// Rel Positions
    1.25  	relPos=QPointF(0,0);
    1.26  	useRelPos=false;
    1.27 -
    1.28 -	// Crossreference to treemodel
    1.29 -	treeItem=NULL;
    1.30  }
    1.31  
    1.32  void LinkableMapObj::copy (LinkableMapObj* other)
    1.33 @@ -101,16 +100,6 @@
    1.34  	treeItem=other->treeItem;
    1.35  }
    1.36  
    1.37 -void LinkableMapObj::setTreeItem (TreeItem *ti)
    1.38 -{
    1.39 -	treeItem=ti;
    1.40 -}
    1.41 -
    1.42 -TreeItem* LinkableMapObj::getTreeItem () const
    1.43 -{
    1.44 -	return treeItem;
    1.45 -}
    1.46 -
    1.47  void LinkableMapObj::setParObj(LinkableMapObj* o)
    1.48  {
    1.49      parObj=o;