Changeset 769 for trunk/src/corelib/animation/qsequentialanimationgroup.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/animation/qsequentialanimationgroup.cpp
r651 r769 480 480 // connects to the finish signal of uncontrolled animations 481 481 if (currentAnimation->totalDuration() == -1) 482 QObject::connect(currentAnimation, SIGNAL(finished()), q, SLOT(_q_uncontrolledAnimationFinished()));482 ); 483 483 484 484 currentAnimation->start(); … … 497 497 actualDuration[currentAnimationIndex] = currentAnimation->currentTime(); 498 498 499 QObject::disconnect(currentAnimation, SIGNAL(finished()), q, SLOT(_q_uncontrolledAnimationFinished()));499 ); 500 500 501 501 if ((direction == QAbstractAnimation::Forward && currentAnimation == animations.last()) … … 544 544 method is called. 545 545 */ 546 void QSequentialAnimationGroupPrivate::animationRemoved At(int index)546 void QSequentialAnimationGroupPrivate::animationRemoved) 547 547 { 548 548 Q_Q(QSequentialAnimationGroup); 549 QAnimationGroupPrivate::animationRemoved At(index);549 QAnimationGroupPrivate::animationRemoved); 550 550 551 551 Q_ASSERT(currentAnimation); // currentAnimation should always be set … … 556 556 const int currentIndex = animations.indexOf(currentAnimation); 557 557 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 559 562 if (index < animations.count()) 560 563 setCurrentAnimation(index); //let's try to take the next one
Note:
See TracChangeset
for help on using the changeset viewer.