summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-06 23:05:29 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-06 23:05:29 (GMT)
commitb8868d6622b4381c60cabf458a9b80b1bfb92d61 (patch)
treedd751a60fcaff158fe038d36e96f78c7f09677a0 /src/declarative/extra
parentf6298bc37be25733571eb143a77953b749a664cb (diff)
downloadQt-b8868d6622b4381c60cabf458a9b80b1bfb92d61.zip
Qt-b8868d6622b4381c60cabf458a9b80b1bfb92d61.tar.gz
Qt-b8868d6622b4381c60cabf458a9b80b1bfb92d61.tar.bz2
Optimization: Use setparent_noevent where appropriate.
Diffstat (limited to 'src/declarative/extra')
-rw-r--r--src/declarative/extra/qmlbehaviour.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/extra/qmlbehaviour.cpp b/src/declarative/extra/qmlbehaviour.cpp
index 0e70bdc..052225a 100644
--- a/src/declarative/extra/qmlbehaviour.cpp
+++ b/src/declarative/extra/qmlbehaviour.cpp
@@ -125,7 +125,8 @@ QmlBehaviour::QmlBehaviour(QObject *parent)
: QmlPropertyValueSource(*(new QmlBehaviourPrivate), parent)
{
Q_D(QmlBehaviour);
- d->group = new QParallelAnimationGroup(this);
+ d->group = new QParallelAnimationGroup;
+ QFx_setParent_noEvent(d->group, this);
}
/*!