src/hbwidgets/itemviews/hbabstractviewitem.h
changeset 30 80e4d18b72f5
parent 23 e6ad4ef83b23
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
    30 #include <hbnamespace.h>
    30 #include <hbnamespace.h>
    31 #include <hbeffect.h>
    31 #include <hbeffect.h>
    32 
    32 
    33 #include <QHash>
    33 #include <QHash>
    34 
    34 
    35 QT_BEGIN_NAMESPACE
       
    36 class QModelIndex;
       
    37 QT_END_NAMESPACE
       
    38 
       
    39 class HbAbstractViewItemPrivate;
    35 class HbAbstractViewItemPrivate;
    40 class HbAbstractViewItemShared;
    36 class HbAbstractViewItemShared;
    41 class HbAbstractItemView;
    37 class HbAbstractItemView;
    42 class HbStyleOptionAbstractViewItem;
       
    43 class HbStyleParameters;
    38 class HbStyleParameters;
    44 class HbFrameBackground;
    39 class HbFrameBackground;
       
    40 class HbStylePrimitiveData;
       
    41 
       
    42 class QGraphicsObject;
       
    43 class QModelIndex;
    45 
    44 
    46 class HB_WIDGETS_EXPORT HbAbstractViewItem : public HbWidget
    45 class HB_WIDGETS_EXPORT HbAbstractViewItem : public HbWidget
    47 {
    46 {
    48     Q_OBJECT
    47     Q_OBJECT
    49 
    48 
   102 
   101 
   103     HbAbstractViewItem(const HbAbstractViewItem &source);
   102     HbAbstractViewItem(const HbAbstractViewItem &source);
   104     HbAbstractViewItem &operator=(const HbAbstractViewItem &source);
   103     HbAbstractViewItem &operator=(const HbAbstractViewItem &source);
   105 
   104 
   106     HbAbstractViewItem( HbAbstractViewItemPrivate &dd, QGraphicsItem *parent );
   105     HbAbstractViewItem( HbAbstractViewItemPrivate &dd, QGraphicsItem *parent );
   107     void initStyleOption(HbStyleOptionAbstractViewItem *option) const;
   106     void initPrimitiveData( HbStylePrimitiveData     *primitiveData, 
       
   107                             const QGraphicsObject    *primitive);
   108     virtual void polish(HbStyleParameters& params);
   108     virtual void polish(HbStyleParameters& params);
   109 
   109 
   110     virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
   110     virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
   111     virtual bool event(QEvent *e);
   111     virtual bool event(QEvent *e);
   112 
   112 
   123     void updatePixmapCache();
   123     void updatePixmapCache();
   124 
   124 
   125 private:
   125 private:
   126     Q_DECLARE_PRIVATE_D( d_ptr, HbAbstractViewItem )
   126     Q_DECLARE_PRIVATE_D( d_ptr, HbAbstractViewItem )
   127     Q_PRIVATE_SLOT(d_func(), void _q_animationFinished(const HbEffect::EffectStatus &status))
   127     Q_PRIVATE_SLOT(d_func(), void _q_animationFinished(const HbEffect::EffectStatus &status))
       
   128     Q_PRIVATE_SLOT(d_func(), void _q_childrenChanged())
   128 
   129 
   129     friend class HbAbstractViewItemShared;
   130     friend class HbAbstractViewItemShared;
   130 };
   131 };
   131 
   132 
   132 #endif /*HBABSTRACTVIEWITEM_H*/
   133 #endif /*HBABSTRACTVIEWITEM_H*/