summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmltransitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmltransitionmanager.cpp')
-rw-r--r--src/declarative/util/qmltransitionmanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/util/qmltransitionmanager.cpp b/src/declarative/util/qmltransitionmanager.cpp
index 6f1a8e3..4609de8 100644
--- a/src/declarative/util/qmltransitionmanager.cpp
+++ b/src/declarative/util/qmltransitionmanager.cpp
@@ -196,7 +196,10 @@ void QmlTransitionManager::transition(const QList<Action> &list,
// transition
foreach(const Action &action, applyList) {
if (action.event) {
- action.event->execute();
+ if (action.event->isReversable() && action.reverseEvent)
+ action.event->reverse();
+ else
+ action.event->execute();
} else {
action.property.write(action.toValue);
}