diff options
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" |