diff -r 6e4b586aa88a -r 25e634a7e1dc mapitem.h --- a/mapitem.h Wed Jun 03 20:37:17 2009 +0000 +++ b/mapitem.h Mon Jun 08 11:36:56 2009 +0000 @@ -3,9 +3,11 @@ #include +#include "treeitem.h" #include "xmlobj.h" class LinkableMapObj; +class TreeItem; /*! /brief MapItem is used to store information of MapObj and inherited classes. @@ -15,7 +17,7 @@ but just a treeview instead. */ -class MapItem: public XMLObj +class MapItem:public TreeItem, public XMLObj { public: enum PositionMode {Unused,Absolute,Relative}; @@ -25,6 +27,8 @@ public: MapItem(); + MapItem (const QList &data, TreeItem *parent = 0); + void init(); /*! Used to save relative position while map is not in QGraphicsView */ virtual void setRelPos(const QPointF&);