mapitem.cpp
changeset 777 8acac4fade1b
parent 776 25e634a7e1dc
child 779 1fb50e79661c
     1.1 --- a/mapitem.cpp	Mon Jun 08 11:36:56 2009 +0000
     1.2 +++ b/mapitem.cpp	Mon Jun 29 10:27:42 2009 +0000
     1.3 @@ -3,20 +3,11 @@
     1.4  #include "linkablemapobj.h"
     1.5  #include "ornamentedobj.h"
     1.6  
     1.7 -#include <iostream>
     1.8 -using namespace std;
     1.9 -#include "misc.h"	//cout << QPointF
    1.10 -
    1.11  MapItem::MapItem()
    1.12  {
    1.13  	init();
    1.14  }
    1.15  
    1.16 -MapItem::MapItem(const QList<QVariant> &data, TreeItem *parent):TreeItem (data,parent)
    1.17 -{
    1.18 -	init();
    1.19 -}
    1.20 -
    1.21  void MapItem::init()
    1.22  {
    1.23  	lmo=NULL;
    1.24 @@ -72,35 +63,3 @@
    1.25  	}
    1.26  }
    1.27  
    1.28 -QString MapItem::getAttr()
    1.29 -{
    1.30 -	QString s;
    1.31 -	if (parentItem==rootItem)
    1.32 -		posMode=Absolute;
    1.33 -	else
    1.34 -	{
    1.35 -		if (type==TreeItem::Image ||depth()==1)
    1.36 -			posMode=Relative;
    1.37 -		else
    1.38 -			posMode=Unused;
    1.39 -	}
    1.40 -	switch (posMode)
    1.41 -	{
    1.42 -		case Relative:	
    1.43 -			if (lmo) pos=lmo->getRelPos();
    1.44 -			s= attribut("relPosX",QString().setNum(pos.x())) +
    1.45 -			   attribut("relPosY",QString().setNum(pos.y())); 
    1.46 -			break;
    1.47 -		case Absolute:	
    1.48 -			if (lmo) pos=lmo->getAbsPos();
    1.49 -			s=attribut("absPosX",QString().setNum(pos.x())) +
    1.50 -			  attribut("absPosY",QString().setNum(pos.y())); 
    1.51 -			break;
    1.52 -		default: break;
    1.53 -	}
    1.54 -	if (hideExport)
    1.55 -		return s+attribut("hideInExport","true");
    1.56 -	else	
    1.57 -		return s;
    1.58 -}
    1.59 -