diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-02-17 00:01:40 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-02-18 05:17:14 (GMT) |
commit | e0b9742450222bdd835358604f70f5a2d13207a9 (patch) | |
tree | 774be36ec73a4bd36376421b8baeb612dee44937 | |
parent | 408cd434e8399cc26f7a7b0a29e0cc6e32786029 (diff) | |
download | Qt-e0b9742450222bdd835358604f70f5a2d13207a9.zip Qt-e0b9742450222bdd835358604f70f5a2d13207a9.tar.gz Qt-e0b9742450222bdd835358604f70f5a2d13207a9.tar.bz2 |
Animation's setTarget should only be called via QmlValueSource*.
We rely on this to know whether to autostart. Disallow easy access to
setTarget by making it private.
-rw-r--r-- | src/declarative/util/qmlanimation_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/util/qmlanimation_p.h b/src/declarative/util/qmlanimation_p.h index 4e8102c..74330da 100644 --- a/src/declarative/util/qmlanimation_p.h +++ b/src/declarative/util/qmlanimation_p.h @@ -94,7 +94,6 @@ public: QmlAnimationGroup *group() const; void setGroup(QmlAnimationGroup *); - virtual void setTarget(const QmlMetaProperty &); //###make private? void setDefaultTarget(const QmlMetaProperty &); void classBegin(); @@ -128,6 +127,9 @@ public: private Q_SLOTS: void timelineComplete(); + +private: + virtual void setTarget(const QmlMetaProperty &); }; class QmlPauseAnimationPrivate; |