58 QString sliderToolTip() const; |
58 QString sliderToolTip() const; |
59 |
59 |
60 void setHandleIcon(const QString& handlePath ); |
60 void setHandleIcon(const QString& handlePath ); |
61 QString handleIcon() const; |
61 QString handleIcon() const; |
62 |
62 |
63 QGraphicsItem* primitive(HbStyle::Primitive primitive) const; |
63 QGraphicsItem *primitive(const QString &itemName) const; |
64 |
64 |
65 signals: |
65 signals: |
66 void sliderPressed(); |
66 void sliderPressed(); |
67 void sliderReleased(); |
67 void sliderReleased(); |
68 void sliderMoved(int value); |
68 void sliderMoved(int value); |
|
69 void trackPressed(); |
|
70 void trackReleased(); |
69 |
71 |
70 public slots : |
72 public slots : |
71 void setSliderValue(int value); |
73 void setSliderValue(int value); |
72 void updatePrimitives(); |
74 void updatePrimitives(); |
73 |
75 |
74 protected: |
76 protected: |
75 HbProgressSlider(HbProgressSliderPrivate &dd,QGraphicsItem *parent = 0); |
77 HbProgressSlider(HbProgressSliderPrivate &dd,QGraphicsItem *parent = 0); |
76 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
78 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
77 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
79 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
78 void showEvent( QShowEvent * event ); |
80 void mouseMoveEvent(QGraphicsSceneMouseEvent *event); |
|
81 void gestureEvent(QGestureEvent *event); |
|
82 void showEvent( QShowEvent *event ); |
79 |
83 |
80 QVariant itemChange(GraphicsItemChange change,const QVariant & value); |
84 QVariant itemChange(GraphicsItemChange change,const QVariant & value); |
81 bool sceneEventFilter(QGraphicsItem *obj,QEvent *event); |
85 bool sceneEventFilter(QGraphicsItem *obj,QEvent *event); |
82 void initStyleOption( HbStyleOptionProgressSlider *option ) const; |
86 void initStyleOption( HbStyleOptionProgressSlider *option ) const; |
|
87 void initPrimitiveData(HbStylePrimitiveData *primitiveData, const QGraphicsObject *primitive); |
83 |
88 |
84 private: |
89 private: |
85 Q_DECLARE_PRIVATE_D( d_ptr, HbProgressSlider) |
90 Q_DECLARE_PRIVATE_D( d_ptr, HbProgressSlider) |
86 Q_DISABLE_COPY( HbProgressSlider ) |
91 Q_DISABLE_COPY( HbProgressSlider ) |
87 }; |
92 }; |