diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-07-22 23:22:00 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-07-22 23:22:57 (GMT) |
commit | 62d1160250274dc355d1998357e606131527db2c (patch) | |
tree | 16122f8716d3dad49183a6a880f78cb6da5e1044 /src | |
parent | e2c252bbf397eaccedbf7278d0f2b065ed8ead86 (diff) | |
download | Qt-62d1160250274dc355d1998357e606131527db2c.zip Qt-62d1160250274dc355d1998357e606131527db2c.tar.gz Qt-62d1160250274dc355d1998357e606131527db2c.tar.bz2 |
Remove unneeded member variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qdeclarativeanimation.cpp | 7 | ||||
-rw-r--r-- | src/declarative/util/qdeclarativeanimation_p_p.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp index 3617031..1a223d5 100644 --- a/src/declarative/util/qdeclarativeanimation.cpp +++ b/src/declarative/util/qdeclarativeanimation.cpp @@ -2071,17 +2071,16 @@ void QDeclarativePropertyAnimation::setTo(const QVariant &t) QEasingCurve QDeclarativePropertyAnimation::easing() const { Q_D(const QDeclarativePropertyAnimation); - return d->easing; + return d->va->easingCurve(); } void QDeclarativePropertyAnimation::setEasing(const QEasingCurve &e) { Q_D(QDeclarativePropertyAnimation); - if (d->easing == e) + if (d->va->easingCurve() == e) return; - d->easing = e; - d->va->setEasingCurve(d->easing); + d->va->setEasingCurve(e); emit easingChanged(e); } diff --git a/src/declarative/util/qdeclarativeanimation_p_p.h b/src/declarative/util/qdeclarativeanimation_p_p.h index b6d6bbb..e38580c 100644 --- a/src/declarative/util/qdeclarativeanimation_p_p.h +++ b/src/declarative/util/qdeclarativeanimation_p_p.h @@ -311,8 +311,6 @@ public: QVariant from; QVariant to; - QEasingCurve easing; - QObject *target; QString propertyName; QString properties; |