equal
deleted
inserted
replaced
31 #include <hbwidget.h> |
31 #include <hbwidget.h> |
32 |
32 |
33 class HbScrollBar; |
33 class HbScrollBar; |
34 class HbAbstractItemView; |
34 class HbAbstractItemView; |
35 class HbIndexFeedbackPrivate; |
35 class HbIndexFeedbackPrivate; |
36 class HbStyleOptionIndexFeedback; |
36 class HbStylePrimitiveData; |
37 |
37 |
38 QT_BEGIN_NAMESPACE |
|
39 class QGraphicsItem; |
38 class QGraphicsItem; |
40 QT_END_NAMESPACE |
39 class QGraphicsObject; |
41 |
40 |
42 class HB_WIDGETS_EXPORT HbIndexFeedback : public HbWidget |
41 class HB_WIDGETS_EXPORT HbIndexFeedback : public HbWidget |
43 { |
42 { |
44 Q_OBJECT |
43 Q_OBJECT |
45 |
44 |
66 IndexFeedbackPolicy indexFeedbackPolicy() const; |
65 IndexFeedbackPolicy indexFeedbackPolicy() const; |
67 |
66 |
68 void setItemView(HbAbstractItemView *itemView); |
67 void setItemView(HbAbstractItemView *itemView); |
69 HbAbstractItemView* itemView() const; |
68 HbAbstractItemView* itemView() const; |
70 |
69 |
|
70 public slots: |
|
71 void updatePrimitives(); |
|
72 |
71 protected: |
73 protected: |
72 virtual void polish( HbStyleParameters& params); |
74 virtual void polish( HbStyleParameters& params); |
73 virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); |
75 virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); |
74 virtual bool eventFilter(QObject *obj, QEvent *event); |
76 virtual bool eventFilter(QObject *obj, QEvent *event); |
75 void initStyleOption(HbStyleOptionIndexFeedback *option) const; |
77 void initPrimitiveData( HbStylePrimitiveData *primitiveData, |
|
78 const QGraphicsObject *primitive); |
76 |
79 |
77 private: |
80 private: |
78 Q_DECLARE_PRIVATE_D(d_ptr, HbIndexFeedback) |
81 Q_DECLARE_PRIVATE_D(d_ptr, HbIndexFeedback) |
79 Q_DISABLE_COPY(HbIndexFeedback) |
82 Q_DISABLE_COPY(HbIndexFeedback) |
80 |
83 |