src/hbcore/primitives/hbrepeaticonitem_p.cpp
changeset 23 e6ad4ef83b23
parent 2 06ff229162e9
--- a/src/hbcore/primitives/hbrepeaticonitem_p.cpp	Wed Aug 18 10:05:37 2010 +0300
+++ b/src/hbcore/primitives/hbrepeaticonitem_p.cpp	Thu Sep 02 20:44:51 2010 +0300
@@ -47,11 +47,11 @@
     mOffset(0),
     mRepeatPixmap(0),
     mOrientation(Qt::Horizontal),
-	mConnected(false)
+    mConnected(false)
 {
 
-	connect(&mTimer,SIGNAL(timeout()),this,SLOT(updateAnimation()));
-	
+    connect(&mTimer,SIGNAL(timeout()),this,SLOT(updateAnimation()));
+    
 }
 
 
@@ -62,7 +62,7 @@
     mMask(QPixmap()),
     mOffset(0),
     mRepeatPixmap(0),
-	mConnected(false)
+    mConnected(false)
 {
    connect(&mTimer,SIGNAL(timeout()),this,SLOT(updateAnimation()));
 }
@@ -112,7 +112,7 @@
 */
 void HbRepeatIconItem::updateAnimation()
 {
-	mConnected = true;
+    mConnected = true;
     if(mIcon.width()>0 && mIcon.height()>0){
         if(mOrientation == Qt::Horizontal){
             mOffset = (mOffset+2) % (int)mIcon.width();
@@ -129,15 +129,15 @@
 {
     Q_UNUSED(option);
     Q_UNUSED(widget);
-	if(!mConnected) {
-			connect(&mTimer,SIGNAL(timeout()),this,SLOT(updateAnimation()));
-		}
-		// Chec the status of timer
-		if (!mTimer.isActive()) {
-			mTimer.start(122);
-		}
-				
-		if(mParentRect != parentItem()->boundingRect()) {
+    if(!mConnected) {
+            connect(&mTimer,SIGNAL(timeout()),this,SLOT(updateAnimation()));
+        }
+        // Chec the status of timer
+        if (!mTimer.isActive()) {
+            mTimer.start(122);
+        }
+                
+        if(mParentRect != parentItem()->boundingRect()) {
             resizeEvent(0); // need to regenerate optimized pixmap.
         }
         QPixmap newblit(boundingRect().size().toSize());