equal
deleted
inserted
replaced
210 |
210 |
211 /*! |
211 /*! |
212 @beta |
212 @beta |
213 @hbwidgets |
213 @hbwidgets |
214 \class HbProgressSlider |
214 \class HbProgressSlider |
215 \brief ProgressSlider is used to indicate the current position of a playing music or video.It can show the progress |
215 \brief ProgressSlider is used to indicate the current position of a playing music or video. It can show the progress |
216 of a progressing music or video along with the status of the buffered data. |
216 of a progressing music or video along with the status of the buffered data. |
217 |
217 |
218 \image html progressslider.png "A Progress Slider with Min-Max text at bottom " |
218 \image html progressslider.png "A Progress Slider with Min-Max text at bottom " |
219 |
219 \image html progressslider2.png "A Progress Slider with Min-Max text at bottom and with pregress value" |
220 |
220 |
221 ProgressSlider is a basic slider but the track is like a progressbar indicating how much progress |
221 |
222 has been done. its a slider with progressbar as its track with some additional behaviour. |
222 ProgressSlider has a track like Progress Bar indicating how much progress |
|
223 has been done. It is a Progress Bar with some additional behaviour. |
223 There is also a progressValue which indicates the amount of buffered data.General use |
224 There is also a progressValue which indicates the amount of buffered data.General use |
224 for this widget would be for playing music online which indicates sliderValue as currentTime and |
225 for this widget would be for playing music online which indicates sliderValue as currentTime and |
225 progressValue as the buffered amount. |
226 progressValue as the buffered amount. |
226 |
227 |
227 HbProgressSlider is derived from HbProgressBar so it supports all the features supported by HbProgressBar. |
228 HbProgressSlider is derived from HbProgressBar so it supports all the features supported by HbProgressBar. |
231 |
232 |
232 void sliderPressed(); |
233 void sliderPressed(); |
233 void sliderReleased(); |
234 void sliderReleased(); |
234 void sliderMoved(int value); |
235 void sliderMoved(int value); |
235 |
236 |
236 sliderPressed is emits when the track is pressed. |
237 sliderPressed is emitted when the track is pressed. |
237 sliderReleased is emits when the track is released. |
238 sliderReleased is emitted when the track is released. |
238 sliderMoved is emits when the handle is moved in any direction. |
239 sliderMoved is emitted when the handle is moved in any direction. |
239 |
240 |
240 The Application can customize the Slider behaviour by listening the signals sliderPressed and sliderReleased.By default there |
241 The Application can customize the Slider behaviour by listening to the signals sliderPressed and sliderReleased.By default there |
241 is no behaviour defined by HbProgressSlider for these actions. |
242 is no behaviour defined by HbProgressSlider for these actions. |
242 |
243 |
243 By default the min value is 0 and max value is 100. The application can set the progressValue (buffer data) and |
244 By default the min value is 0 and max value is 100. The application can set the progressValue (buffer data) and |
244 sliderValue (Progress Slider position) according to the situation. |
245 sliderValue (Progress Slider position) according to the situation. |
245 |
246 |
266 |
267 |
267 */ |
268 */ |
268 |
269 |
269 /*! |
270 /*! |
270 @beta |
271 @beta |
271 Constructs a progressslider with a parent. |
272 Constructs a Progress Slider with a parent. |
272 */ |
273 */ |
273 |
274 |
274 HbProgressSlider::HbProgressSlider(QGraphicsItem *parent) : |
275 HbProgressSlider::HbProgressSlider(QGraphicsItem *parent) : |
275 HbProgressBar(*new HbProgressSliderPrivate,parent) |
276 HbProgressBar(*new HbProgressSliderPrivate,parent) |
276 { |
277 { |
297 } |
298 } |
298 |
299 |
299 |
300 |
300 /*! |
301 /*! |
301 @beta |
302 @beta |
302 Constructs a progress bar with the given parent. |
303 Constructs a Progress Bar with the given parent. |
303 \param parent The parent of ProgressBar |
304 \param parent The parent of ProgressBar |
304 */ |
305 */ |
305 HbProgressSlider::HbProgressSlider(HbProgressSliderPrivate &dd,QGraphicsItem *parent) : |
306 HbProgressSlider::HbProgressSlider(HbProgressSliderPrivate &dd,QGraphicsItem *parent) : |
306 HbProgressBar( dd,parent) |
307 HbProgressBar( dd,parent) |
307 { |
308 { |
321 } |
322 } |
322 |
323 |
323 |
324 |
324 /*! |
325 /*! |
325 @beta |
326 @beta |
326 Destructor for the progressslider. |
327 Destructor for the Progress Slider. |
327 */ |
328 */ |
328 HbProgressSlider::~HbProgressSlider() |
329 HbProgressSlider::~HbProgressSlider() |
329 { |
330 { |
330 } |
331 } |
331 |
332 |