Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/corelib/animation/qsequentialanimationgroup.cpp

    r651 r769  
    480480    // connects to the finish signal of uncontrolled animations
    481481    if (currentAnimation->totalDuration() == -1)
    482         QObject::connect(currentAnimation, SIGNAL(finished()), q, SLOT(_q_uncontrolledAnimationFinished()));
     482        );
    483483
    484484    currentAnimation->start();
     
    497497    actualDuration[currentAnimationIndex] = currentAnimation->currentTime();
    498498
    499     QObject::disconnect(currentAnimation, SIGNAL(finished()), q, SLOT(_q_uncontrolledAnimationFinished()));
     499    );
    500500
    501501    if ((direction == QAbstractAnimation::Forward && currentAnimation == animations.last())
     
    544544    method is called.
    545545*/
    546 void QSequentialAnimationGroupPrivate::animationRemovedAt(int index)
     546void QSequentialAnimationGroupPrivate::animationRemoved)
    547547{
    548548    Q_Q(QSequentialAnimationGroup);
    549     QAnimationGroupPrivate::animationRemovedAt(index);
     549    QAnimationGroupPrivate::animationRemoved);
    550550
    551551    Q_ASSERT(currentAnimation); // currentAnimation should always be set
     
    556556    const int currentIndex = animations.indexOf(currentAnimation);
    557557    if (currentIndex == -1) {
    558         //we're removing the current animation, let's update it to another one
     558        //we're removing the current animation
     559
     560        disconnectUncontrolledAnimation(currentAnimation);
     561
    559562        if (index < animations.count())
    560563            setCurrentAnimation(index); //let's try to take the next one
Note: See TracChangeset for help on using the changeset viewer.