summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlanimation.cpp
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/util/qmlanimation.cpp
parentf6298bc37be25733571eb143a77953b749a664cb (diff)
downloadQt-b8868d6622b4381c60cabf458a9b80b1bfb92d61.zip
Qt-b8868d6622b4381c60cabf458a9b80b1bfb92d61.tar.gz
Qt-b8868d6622b4381c60cabf458a9b80b1bfb92d61.tar.bz2
Optimization: Use setparent_noevent where appropriate.
Diffstat (limited to 'src/declarative/util/qmlanimation.cpp')
-rw-r--r--src/declarative/util/qmlanimation.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp
index f3691ea..224f668 100644
--- a/src/declarative/util/qmlanimation.cpp
+++ b/src/declarative/util/qmlanimation.cpp
@@ -654,7 +654,8 @@ QmlPauseAnimation::~QmlPauseAnimation()
void QmlPauseAnimationPrivate::init()
{
Q_Q(QmlPauseAnimation);
- pa = new QPauseAnimation(q);
+ pa = new QPauseAnimation;
+ QFx_setParent_noEvent(pa, q);
}
/*!
@@ -799,7 +800,8 @@ QmlRunScriptAction::~QmlRunScriptAction()
void QmlRunScriptActionPrivate::init()
{
Q_Q(QmlRunScriptAction);
- rsa = new QActionAnimation(&proxy, q);
+ rsa = new QActionAnimation(&proxy);
+ QFx_setParent_noEvent(rsa, q);
}
/*!
@@ -906,7 +908,8 @@ QmlSetPropertyAction::~QmlSetPropertyAction()
void QmlSetPropertyActionPrivate::init()
{
Q_Q(QmlSetPropertyAction);
- spa = new QActionAnimation(q);
+ spa = new QActionAnimation;
+ QFx_setParent_noEvent(spa, q);
}
/*!
@@ -1096,7 +1099,8 @@ QmlParentChangeAction::~QmlParentChangeAction()
void QmlParentChangeActionPrivate::init()
{
Q_Q(QmlParentChangeAction);
- cpa = new QActionAnimation(q);
+ cpa = new QActionAnimation;
+ QFx_setParent_noEvent(cpa, q);
}
void QmlParentChangeActionPrivate::doAction()