- QList<TreeItem *> _childItems;
- QHash<uint, TreeItem *> _childHash; // uint to be compatible to qHash functions
- TreeItem *_parentItem;
- Qt::ItemFlags _flags;
+ QList<QVariant> _itemData;
+};
+
+/*****************************************
+ * PropertyMapItem
+ *****************************************/
+class PropertyMapItem : public AbstractTreeItem {
+ Q_OBJECT
+
+public:
+ PropertyMapItem(const QStringList &propertyOrder, AbstractTreeItem *parent = 0);
+ PropertyMapItem(AbstractTreeItem *parent = 0);
+
+ virtual ~PropertyMapItem();
+
+ virtual QVariant data(int column, int role) const;
+ virtual bool setData(int column, const QVariant &value, int role);
+
+ virtual QString toolTip(int column) const { Q_UNUSED(column) return QString(); }
+ virtual int columnCount() const;
+
+ void appendProperty(const QString &property);
+
+private:
+ QStringList _propertyOrder;