src/corelib/animation/qanimationgroup.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
   242     QAbstractAnimationPrivate::get(animation)->group = 0;
   242     QAbstractAnimationPrivate::get(animation)->group = 0;
   243     // ### removing from list before doing setParent to avoid inifinite recursion
   243     // ### removing from list before doing setParent to avoid inifinite recursion
   244     // in ChildRemoved event
   244     // in ChildRemoved event
   245     d->animations.removeAt(index);
   245     d->animations.removeAt(index);
   246     animation->setParent(0);
   246     animation->setParent(0);
   247     d->animationRemovedAt(index);
   247     d->animationRemoved(index, animation);
   248     return animation;
   248     return animation;
   249 }
   249 }
   250 
   250 
   251 /*!
   251 /*!
   252     Removes and deletes all animations in this animation group, and resets the current
   252     Removes and deletes all animations in this animation group, and resets the current
   283     }
   283     }
   284     return QAbstractAnimation::event(event);
   284     return QAbstractAnimation::event(event);
   285 }
   285 }
   286 
   286 
   287 
   287 
   288 void QAnimationGroupPrivate::animationRemovedAt(int index)
   288 void QAnimationGroupPrivate::animationRemoved(int index, QAbstractAnimation *)
   289 {
   289 {
   290     Q_Q(QAnimationGroup);
   290     Q_Q(QAnimationGroup);
   291     Q_UNUSED(index);
   291     Q_UNUSED(index);
   292     if (animations.isEmpty()) {
   292     if (animations.isEmpty()) {
   293         currentTime = 0;
   293         currentTime = 0;