src/hbwidgets/itemviews/hbtreeview.h
changeset 34 ed14f46c0e55
parent 2 06ff229162e9
--- a/src/hbwidgets/itemviews/hbtreeview.h	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbwidgets/itemviews/hbtreeview.h	Mon Oct 18 18:23:13 2010 +0300
@@ -51,6 +51,11 @@
     explicit HbTreeView(QGraphicsItem *parent = 0);
     virtual ~HbTreeView();    
 
+    enum { Type = Hb::ItemType_TreeView };
+    virtual int type() const {
+        return Type;
+    }
+
     virtual void setModel(QAbstractItemModel *model, HbAbstractViewItem *prototype = 0);
 
     virtual void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible);