diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-23 06:12:38 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-24 03:28:39 (GMT) |
commit | 738c3a68e5ebe8051234ba17a15f2e0585f3d722 (patch) | |
tree | 58fb10f3966158fd0df8855c361b3a946cf9e287 /src | |
parent | 4d82dd604c4f6aedbf3ed0eabcf89d3dca3d0a88 (diff) | |
download | Qt-738c3a68e5ebe8051234ba17a15f2e0585f3d722.zip Qt-738c3a68e5ebe8051234ba17a15f2e0585f3d722.tar.gz Qt-738c3a68e5ebe8051234ba17a15f2e0585f3d722.tar.bz2 |
Animation construction optimization.
Use setParent_NoEvent when parenting to group.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qdeclarativeanimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp index 1fb3d99..bead842 100644 --- a/src/declarative/util/qdeclarativeanimation.cpp +++ b/src/declarative/util/qdeclarativeanimation.cpp @@ -1318,8 +1318,8 @@ void QDeclarativeAnimationGroupPrivate::append_animation(QDeclarativeListPropert { QDeclarativeAnimationGroup *q = qobject_cast<QDeclarativeAnimationGroup *>(list->object); if (q) { - q->d_func()->animations.append(a); a->setGroup(q); + QDeclarative_setParent_noEvent(a->qtAnimation(), q->d_func()->ag); q->d_func()->ag->addAnimation(a->qtAnimation()); } } |