src/hbwidgets/sliders/hbprogressbar_p.h
changeset 34 ed14f46c0e55
parent 2 06ff229162e9
--- a/src/hbwidgets/sliders/hbprogressbar_p.h	Mon Oct 04 17:49:30 2010 +0300
+++ b/src/hbwidgets/sliders/hbprogressbar_p.h	Mon Oct 18 18:23:13 2010 +0300
@@ -29,12 +29,13 @@
 
 #include "hbwidget_p.h"
 #include "hbprogressbar.h"
+#include <hbstyleframeprimitivedata.h>
+#include <hbstyletextprimitivedata.h>
 
 #ifdef HB_EFFECTS
 #include "hbeffect.h"
 #endif
 
-class QGraphicsItem;
 
 class HbProgressBarPrivate : public HbWidgetPrivate
 {
@@ -47,22 +48,23 @@
     void createTextPrimitives();
     virtual void setRange(int minimum, int maximum);
     virtual void setOrientation(Qt::Orientation orientation);
-	virtual void setProgressValue(int value);
-	virtual void setEnableFlag(bool flag);
+    virtual void setProgressValue(int value);
+    virtual void setEnableFlag(bool flag);
 
+    virtual void updateProgressTrack();
+    void updateWaitTrack();
 #ifdef HB_EFFECTS
     void _q_delayedHide(HbEffect::EffectStatus status);
     void _q_delayedShow(HbEffect::EffectStatus status);
 #endif
 
 public:
-    QGraphicsItem *mFrame;
-    QGraphicsItem *mTrack;
-    QGraphicsItem *mWaitTrack;
-    QGraphicsItem *mMinTextItem;
-    QGraphicsItem *mMaxTextItem;
-    QGraphicsItem *mTouchAreaItem;
-
+    QGraphicsObject *mFrame;
+    QGraphicsObject *mTrack;
+    QGraphicsObject *mWaitTrack;
+    QGraphicsObject *mMinTextItem;
+    QGraphicsObject *mMaxTextItem;
+    QGraphicsObject *mTouchAreaItem;
 
     uint mMinMaxTextVisible : 1;
     int mMaximum;
@@ -78,6 +80,7 @@
 
     uint mDelayHideInProgress : 1;
     uint mShowEffectInProgress : 1;
+    bool mStopWaitAnimation;
 };
 
 #endif  //HBPROGRESSBARPRIVATE_H