diff -r 25e634a7e1dc -r 8acac4fade1b mapitem.cpp --- a/mapitem.cpp Mon Jun 08 11:36:56 2009 +0000 +++ b/mapitem.cpp Mon Jun 29 10:27:42 2009 +0000 @@ -3,20 +3,11 @@ #include "linkablemapobj.h" #include "ornamentedobj.h" -#include -using namespace std; -#include "misc.h" //cout << QPointF - MapItem::MapItem() { init(); } -MapItem::MapItem(const QList &data, TreeItem *parent):TreeItem (data,parent) -{ - init(); -} - void MapItem::init() { lmo=NULL; @@ -72,35 +63,3 @@ } } -QString MapItem::getAttr() -{ - QString s; - if (parentItem==rootItem) - posMode=Absolute; - else - { - if (type==TreeItem::Image ||depth()==1) - posMode=Relative; - else - posMode=Unused; - } - switch (posMode) - { - case Relative: - if (lmo) pos=lmo->getRelPos(); - s= attribut("relPosX",QString().setNum(pos.x())) + - attribut("relPosY",QString().setNum(pos.y())); - break; - case Absolute: - if (lmo) pos=lmo->getAbsPos(); - s=attribut("absPosX",QString().setNum(pos.x())) + - attribut("absPosY",QString().setNum(pos.y())); - break; - default: break; - } - if (hideExport) - return s+attribut("hideInExport","true"); - else - return s; -} -