src/hbwidgets/itemviews/hbtreeview.h
changeset 34 ed14f46c0e55
parent 2 06ff229162e9
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    49 public:
    49 public:
    50 
    50 
    51     explicit HbTreeView(QGraphicsItem *parent = 0);
    51     explicit HbTreeView(QGraphicsItem *parent = 0);
    52     virtual ~HbTreeView();    
    52     virtual ~HbTreeView();    
    53 
    53 
       
    54     enum { Type = Hb::ItemType_TreeView };
       
    55     virtual int type() const {
       
    56         return Type;
       
    57     }
       
    58 
    54     virtual void setModel(QAbstractItemModel *model, HbAbstractViewItem *prototype = 0);
    59     virtual void setModel(QAbstractItemModel *model, HbAbstractViewItem *prototype = 0);
    55 
    60 
    56     virtual void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible);
    61     virtual void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible);
    57 
    62 
    58     void setExpanded(const QModelIndex &index, bool expanded);
    63     void setExpanded(const QModelIndex &index, bool expanded);