26 #ifndef HBRATINGSLIDER_P_H |
26 #ifndef HBRATINGSLIDER_P_H |
27 #define HBRATINGSLIDER_P_H |
27 #define HBRATINGSLIDER_P_H |
28 |
28 |
29 #include "hbwidget_p.h" |
29 #include "hbwidget_p.h" |
30 #include <hbratingslider.h> |
30 #include <hbratingslider.h> |
|
31 #include <hbtoucharea.h> |
|
32 |
31 class HbRatingSliderPrivate :public HbWidgetPrivate |
33 class HbRatingSliderPrivate :public HbWidgetPrivate |
32 { |
34 { |
33 Q_DECLARE_PUBLIC( HbRatingSlider ) |
35 Q_DECLARE_PUBLIC( HbRatingSlider ) |
|
36 |
34 public: |
37 public: |
35 HbRatingSliderPrivate(); |
38 HbRatingSliderPrivate(); |
36 ~HbRatingSliderPrivate(); |
39 ~HbRatingSliderPrivate(); |
|
40 |
37 void init(); |
41 void init(); |
38 int calculateProgressValue(qreal pos); |
42 int calculateProgressValue(qreal pos); |
39 void createLookupTable(); |
43 void createLookupTable(); |
40 bool mMousePressed; |
44 |
41 int *mLookupValues; |
45 void updateRatedIconItem(); |
42 bool mReadOnly; |
46 void updateUnRatedIconItem(); |
43 int mNumberOfIcons; |
47 |
44 int mStepCount; |
48 bool mMousePressed; |
45 int mCurrentValue; |
49 int *mLookupValues; |
46 QGraphicsItem *mFrame; |
50 bool mReadOnly; |
47 QGraphicsItem *mTrack; |
51 int mNumberOfIcons; |
48 QGraphicsItem *mLayoutItem; |
52 int mStepCount; |
49 QString mUnratedIconName; |
53 int mCurrentValue; |
50 QGraphicsItem *mTouchArea; |
54 |
51 QString mRatedIconName; |
55 QGraphicsObject *mUnRatedItem; |
|
56 QGraphicsObject *mRatedItem; |
|
57 QGraphicsObject *mBackGroundItem; |
|
58 QGraphicsObject *mTouchArea; |
|
59 |
|
60 QString mUnratedIconName; |
|
61 QString mRatedIconName; |
|
62 QString mToolTipText; |
|
63 HbTouchArea *mToolTipArea; |
52 }; |
64 }; |
53 |
65 |
54 #endif //HBRATINGSLIDER_P_H |
66 #endif //HBRATINGSLIDER_P_H |
55 |
67 |