videocollection/tsrc/stubs/inc/hbabstractitemview.h
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
equal deleted inserted replaced
36:8aed59de29f9 37:4eb2df7f7cbe
    26 
    26 
    27 class HbAbstractItemView : public HbWidget
    27 class HbAbstractItemView : public HbWidget
    28 {
    28 {
    29     Q_OBJECT
    29     Q_OBJECT
    30     
    30     
       
    31     Q_PROPERTY(ItemAnimations enabledAnimations READ enabledAnimations WRITE setEnabledAnimations)
       
    32     
    31 public:
    33 public:
       
    34     
       
    35     enum ItemAnimation
       
    36     {
       
    37         None               = 0x00000,
       
    38         Appear             = 0x00001,
       
    39         Disappear          = 0x00002,
       
    40         TouchDown          = 0x00004,
       
    41         All                = 0xFFFFF
       
    42     };
       
    43     
       
    44     Q_DECLARE_FLAGS(ItemAnimations, ItemAnimation)
    32     
    45     
    33     enum SelectionMode
    46     enum SelectionMode
    34     {
    47     {
    35         InvalidSelection,
    48         InvalidSelection,
    36         NoSelection,
    49         NoSelection,
    39         ContiguousSelection
    52         ContiguousSelection
    40     };
    53     };
    41     
    54     
    42     HbAbstractItemView(QGraphicsWidget *parent = 0) : HbWidget(parent){}
    55     HbAbstractItemView(QGraphicsWidget *parent = 0) : HbWidget(parent){}
    43     
    56     
       
    57     void setEnabledAnimations(ItemAnimations flags)
       
    58     {
       
    59         Q_UNUSED(flags);
       
    60     }
       
    61     
       
    62     ItemAnimations enabledAnimations() const
       
    63     {
       
    64         return None;
       
    65     }
       
    66     
    44 signals:
    67 signals:
    45 
    68 
    46     void activated(const QModelIndex &index);
    69     void activated(const QModelIndex &index);
    47     
    70     
    48     void longPressed(HbAbstractViewItem *item, const QPointF &point);
    71     void longPressed(HbAbstractViewItem *item, const QPointF &point);