mapobj.cpp
changeset 790 133e2ed6b9c5
parent 754 db0ec4bcf416
child 792 7d67be709091
     1.1 --- a/mapobj.cpp	Mon Apr 20 10:42:05 2009 +0000
     1.2 +++ b/mapobj.cpp	Thu Sep 03 08:52:00 2009 +0000
     1.3 @@ -12,10 +12,11 @@
     1.4      init ();
     1.5  }
     1.6  
     1.7 -MapObj::MapObj (QGraphicsScene *s)
     1.8 +MapObj::MapObj (QGraphicsScene *s, TreeItem *ti)
     1.9  {
    1.10  //  cout << "Const MapObj\n";
    1.11      scene=s;
    1.12 +	treeItem=ti;
    1.13      init ();
    1.14  }
    1.15  
    1.16 @@ -46,6 +47,17 @@
    1.17  	bbox.setSize (QSizeF(other->bbox.width(), other->bbox.height() ) );
    1.18  }
    1.19  
    1.20 +void MapObj::setTreeItem (TreeItem *ti)
    1.21 +{
    1.22 +	treeItem=ti;
    1.23 +}
    1.24 +
    1.25 +TreeItem* MapObj::getTreeItem () const
    1.26 +{
    1.27 +	return treeItem;
    1.28 +}
    1.29 +
    1.30 +
    1.31  QGraphicsScene* MapObj::getScene()
    1.32  {
    1.33  	return scene;