homescreenapp/hsutils/src/hspageindicatoritem.cpp
changeset 63 52b0f64eeb51
parent 62 341166945d65
equal deleted inserted replaced
62:341166945d65 63:52b0f64eeb51
   109 {
   109 {
   110     graphicsEffect()->setEnabled(true);
   110     graphicsEffect()->setEnabled(true);
   111     setTransformOriginPoint(rect().center());
   111     setTransformOriginPoint(rect().center());
   112     QPropertyAnimation *animation = 
   112     QPropertyAnimation *animation = 
   113         new QPropertyAnimation(graphicsEffect(), "strength");
   113         new QPropertyAnimation(graphicsEffect(), "strength");
       
   114     
   114     animation->setDuration(800);
   115     animation->setDuration(800);
   115     animation->setKeyValueAt(0.2, 1);
   116     animation->setKeyValueAt(0.2, 1);
   116     animation->setEndValue(0);
   117     animation->setEndValue(0);
       
   118     
       
   119     connect(this,SIGNAL(destroyed()),animation,SLOT(stop()));
   117     connect(animation, SIGNAL(finished()), SLOT(animationFinished()));
   120     connect(animation, SIGNAL(finished()), SLOT(animationFinished()));
   118     animation->start(QAbstractAnimation::DeleteWhenStopped);
   121     animation->start(QAbstractAnimation::DeleteWhenStopped);
   119 }
   122 }
   120 
   123 
   121 /*!
   124 /*!