1.1 --- a/mapitem.h Wed Jun 03 20:37:17 2009 +0000
1.2 +++ b/mapitem.h Mon Jun 08 11:36:56 2009 +0000
1.3 @@ -3,9 +3,11 @@
1.4
1.5 #include <QPointF>
1.6
1.7 +#include "treeitem.h"
1.8 #include "xmlobj.h"
1.9
1.10 class LinkableMapObj;
1.11 +class TreeItem;
1.12
1.13 /*! /brief MapItem is used to store information of MapObj and inherited
1.14 classes.
1.15 @@ -15,7 +17,7 @@
1.16 but just a treeview instead.
1.17 */
1.18
1.19 -class MapItem: public XMLObj
1.20 +class MapItem:public TreeItem, public XMLObj
1.21 {
1.22 public:
1.23 enum PositionMode {Unused,Absolute,Relative};
1.24 @@ -25,6 +27,8 @@
1.25
1.26 public:
1.27 MapItem();
1.28 + MapItem (const QList<QVariant> &data, TreeItem *parent = 0);
1.29 + void init();
1.30
1.31 /*! Used to save relative position while map is not in QGraphicsView */
1.32 virtual void setRelPos(const QPointF&);