diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-07-20 00:58:11 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-07-20 00:58:11 (GMT) |
commit | babb3bb4bb0de6cd2129d29fd6a90695bcbd53e2 (patch) | |
tree | c0a44c57e54e77dd31e2a68959e03256124cdfbd /src/declarative/extra/qmlbehaviour.cpp | |
parent | 45cbfefe9d68152841beb6474c94eece0a085eb5 (diff) | |
parent | 1dc2e92b4630a0c19d1d2bdf5a05cd18003c566a (diff) | |
download | Qt-babb3bb4bb0de6cd2129d29fd6a90695bcbd53e2.zip Qt-babb3bb4bb0de6cd2129d29fd6a90695bcbd53e2.tar.gz Qt-babb3bb4bb0de6cd2129d29fd6a90695bcbd53e2.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/extra/qmlbehaviour.cpp')
-rw-r--r-- | src/declarative/extra/qmlbehaviour.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/declarative/extra/qmlbehaviour.cpp b/src/declarative/extra/qmlbehaviour.cpp index f2d5e9a..92a85b0 100644 --- a/src/declarative/extra/qmlbehaviour.cpp +++ b/src/declarative/extra/qmlbehaviour.cpp @@ -75,15 +75,12 @@ private: class QmlBehaviourPrivate : public QObjectPrivate { public: - QmlBehaviourPrivate() - : context(0), valueData(0), operations(this) {} + QmlBehaviourPrivate() : operations(this) {} QmlMetaProperty property; QVariant currentValue; QVariant fromValue; QVariant toValue; - QmlContext *context; - QmlBehaviourData *valueData; class AnimationList : public QmlConcreteList<QmlAbstractAnimation *> { public: @@ -128,7 +125,6 @@ QmlBehaviour::QmlBehaviour(QObject *parent) : QmlPropertyValueSource(*(new QmlBehaviourPrivate), parent) { Q_D(QmlBehaviour); - d->valueData = new QmlBehaviourData(this); d->group = new QParallelAnimationGroup(this); } @@ -200,10 +196,6 @@ void QmlBehaviour::propertyValueChanged() //### does this clean up everything needed? d->group->stop(); - d->valueData->e = newValue; - d->valueData->s = d->currentValue; - emit d->valueData->valuesChanged(); - QmlStateOperation::ActionList actions; Action action; action.property = d->property; @@ -238,22 +230,6 @@ void QmlBehaviour::setTarget(const QmlMetaProperty &property) } } -void QmlBehaviour::classBegin() -{ - Q_D(QmlBehaviour); - if (!d->context) { - d->context = new QmlContext(qmlContext(this), this); - d->context->addDefaultObject(d->valueData); - } - d->context->activate(); -} - -void QmlBehaviour::classComplete() -{ - Q_D(QmlBehaviour); - d->context->deactivate(); -} - QT_END_NAMESPACE #include "qmlbehaviour.moc" |