src/corelib/animation/qanimationgroup.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   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;