summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-06 03:26:13 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-06 03:26:13 (GMT)
commitf132fde07d0d852f2aa61dbc80d5d5f89ae5dcfa (patch)
treefca2c305bc7c22bf4318c9dde1bb3471c70015b9
parentd4ebb04b8f0db7821f5059fc31020362f85c7c30 (diff)
downloadQt-f132fde07d0d852f2aa61dbc80d5d5f89ae5dcfa.zip
Qt-f132fde07d0d852f2aa61dbc80d5d5f89ae5dcfa.tar.gz
Qt-f132fde07d0d852f2aa61dbc80d5d5f89ae5dcfa.tar.bz2
Don't init Number/Color animations twice.
-rw-r--r--src/declarative/util/qmlanimation.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp
index 27caf20..3240360 100644
--- a/src/declarative/util/qmlanimation.cpp
+++ b/src/declarative/util/qmlanimation.cpp
@@ -723,7 +723,6 @@ QmlColorAnimation::QmlColorAnimation(QObject *parent)
: QmlPropertyAnimation(parent)
{
Q_D(QmlPropertyAnimation);
- d->init();
d->interpolatorType = QMetaType::QColor;
d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);
d->defaultToInterpolatorType = true;
@@ -1199,7 +1198,6 @@ QmlNumberAnimation::QmlNumberAnimation(QObject *parent)
: QmlPropertyAnimation(parent)
{
Q_D(QmlPropertyAnimation);
- d->init();
d->interpolatorType = QMetaType::QReal;
d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType);
}