diff -r 7516d6d86cf5 -r ed14f46c0e55 src/hbwidgets/itemviews/hbtreeview.h --- 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);