summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmltransitionmanager.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-09-28 00:38:30 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-11 22:47:47 (GMT)
commitac507b4752dcd065038130d224910a6dc64f8f37 (patch)
tree629acc0c7b4afd4b474d66b27bf8b6ca161c85c0 /src/declarative/util/qmltransitionmanager.cpp
parent9b7d77460c38ec93d98fa4779826b32bea2eaaff (diff)
downloadQt-ac507b4752dcd065038130d224910a6dc64f8f37.zip
Qt-ac507b4752dcd065038130d224910a6dc64f8f37.tar.gz
Qt-ac507b4752dcd065038130d224910a6dc64f8f37.tar.bz2
Improve Behavior reliability.
Diffstat (limited to 'src/declarative/util/qmltransitionmanager.cpp')
-rw-r--r--src/declarative/util/qmltransitionmanager.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/declarative/util/qmltransitionmanager.cpp b/src/declarative/util/qmltransitionmanager.cpp
index 3e2e05f..7eaccac 100644
--- a/src/declarative/util/qmltransitionmanager.cpp
+++ b/src/declarative/util/qmltransitionmanager.cpp
@@ -144,9 +144,9 @@ void QmlTransitionManager::transition(const QList<Action> &list,
for (int ii = 0; ii < applyList.size(); ++ii) {
const Action &action = applyList.at(ii);
if (action.toBinding) {
- action.property.setBinding(action.toBinding);
+ action.property.setBinding(action.toBinding, QmlMetaProperty::BypassInterceptor | QmlMetaProperty::DontRemoveBinding);
} else if (!action.event) {
- action.property.write(action.toValue);
+ action.property.write(action.toValue, QmlMetaProperty::BypassInterceptor | QmlMetaProperty::DontRemoveBinding);
} else if (action.event->isReversable()) {
if (action.reverseEvent)
action.event->reverse();
@@ -187,7 +187,7 @@ void QmlTransitionManager::transition(const QList<Action> &list,
if (action.toBinding)
action.property.setBinding(0); // Make sure this is disabled during the transition
- action.property.write(action.fromValue);
+ action.property.write(action.fromValue, QmlMetaProperty::BypassInterceptor | QmlMetaProperty::DontRemoveBinding);
}
}
@@ -223,7 +223,7 @@ void QmlTransitionManager::transition(const QList<Action> &list,
}
// Any actions remaining have not been handled by the transition and should
- // be applied immediately. We skip applying transitions, as they are all
+ // be applied immediately. We skip applying bindings, as they are all
// applied at the end in applyBindings() to avoid any nastiness mid
// transition
foreach(const Action &action, applyList) {
@@ -232,13 +232,12 @@ void QmlTransitionManager::transition(const QList<Action> &list,
action.event->reverse();
else
action.event->execute();
- } else if (!action.event) {
+ } else if (!action.event && !action.toBinding) {
action.property.write(action.toValue);
}
}
if (!transition)
d->applyBindings();
-
}
void QmlTransitionManager::cancel()