From e0b9742450222bdd835358604f70f5a2d13207a9 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Wed, 17 Feb 2010 10:01:40 +1000 Subject: 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. --- src/declarative/util/qmlanimation_p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v0.12