further speedup during load. positions of branches are saved (again)
3 #include "linkablemapobj.h"
4 #include "ornamentedobj.h"
15 void MapItem::setRelPos (const QPointF &p)
21 ((OrnamentedObj*)lmo)->setUseRelPos (true);
22 ((OrnamentedObj*)lmo)->move2RelPos(p);
26 void MapItem::setAbsPos (const QPointF &p)
30 if (lmo) lmo->move (p);
33 LinkableMapObj* MapItem::getLMO()
38 void MapItem::setLMO(LinkableMapObj *l)
43 void MapItem::initLMO()
59 QString MapItem::getAttr()
64 if (lmo) pos=lmo->getRelPos();
66 attribut("relPosX",QString().setNum(pos.x())) +
67 attribut("relPosY",QString().setNum(pos.y()));
70 if (lmo) pos=lmo->getAbsPos();
72 attribut("absPosX",QString().setNum(pos.x())) +
73 attribut("absPosY",QString().setNum(pos.y()));