summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-23 06:12:38 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-24 03:28:39 (GMT)
commit738c3a68e5ebe8051234ba17a15f2e0585f3d722 (patch)
tree58fb10f3966158fd0df8855c361b3a946cf9e287 /src
parent4d82dd604c4f6aedbf3ed0eabcf89d3dca3d0a88 (diff)
downloadQt-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.cpp2
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());
}
}