equal
deleted
inserted
replaced
41 #include <hbwidget_p.h> |
41 #include <hbwidget_p.h> |
42 |
42 |
43 #define HB_INDEXFEEDBACK_TYPE "indexfeedback" |
43 #define HB_INDEXFEEDBACK_TYPE "indexfeedback" |
44 #define EFFECT_IFDISAPPEAR "disappear" |
44 #define EFFECT_IFDISAPPEAR "disappear" |
45 |
45 |
46 QT_BEGIN_NAMESPACE |
|
47 class QGraphicsWidget; |
46 class QGraphicsWidget; |
48 class QGraphicsItem; |
47 class QGraphicsObject; |
49 class QRectF; |
48 class QRectF; |
50 QT_END_NAMESPACE |
|
51 |
49 |
52 class HbIndexFeedbackPrivate : public HbWidgetPrivate |
50 class HbIndexFeedbackPrivate : public HbWidgetPrivate |
53 { |
51 { |
54 Q_DECLARE_PUBLIC( HbIndexFeedback ) |
52 Q_DECLARE_PUBLIC( HbIndexFeedback ) |
55 |
53 |
69 void _q_scrollPositionChanged(qreal value, Qt::Orientation orientation); |
67 void _q_scrollPositionChanged(qreal value, Qt::Orientation orientation); |
70 void _q_hideIndexFeedback(); |
68 void _q_hideIndexFeedback(); |
71 void _q_itemViewDestroyed(); |
69 void _q_itemViewDestroyed(); |
72 void _q_hideIndexFeedbackNow(); |
70 void _q_hideIndexFeedbackNow(); |
73 |
71 |
74 void updatePrimitives(); |
|
75 void createPrimitives(); |
72 void createPrimitives(); |
76 |
73 |
77 void calculatePopupRects(); |
74 void calculatePopupRects(); |
78 qreal textHeight() const; |
75 qreal textHeight() const; |
79 qreal textWidth() const; |
76 qreal textWidth() const; |
97 |
94 |
98 QTimer *mIndexFeedbackTimer; |
95 QTimer *mIndexFeedbackTimer; |
99 QTimer *mDisappearTimer; |
96 QTimer *mDisappearTimer; |
100 |
97 |
101 QString mPopupContent; |
98 QString mPopupContent; |
102 QGraphicsItem *mTextItem; |
99 QGraphicsObject *mTextItem; |
103 QGraphicsItem *mPopupItem; |
100 QGraphicsObject *mPopupItem; |
104 |
101 |
105 HbAbstractItemView *mItemView; |
102 HbAbstractItemView *mItemView; |
106 |
103 |
107 QRectF mPopupTextRect; |
104 QRectF mPopupTextRect; |
108 QRectF mPopupBackgroundRect; |
105 QRectF mPopupBackgroundRect; |