diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-23 22:39:32 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-23 22:39:32 (GMT) |
commit | e3c7d67be8ae3121dd84a89f9add452fcbb775ac (patch) | |
tree | 6b41fb217128387635d6e7dfeb86f5470eb9567d /src/declarative/util/qmlstate.cpp | |
parent | 1245e7cce64d46600b2535bc7d36474f8ba382e2 (diff) | |
download | Qt-e3c7d67be8ae3121dd84a89f9add452fcbb775ac.zip Qt-e3c7d67be8ae3121dd84a89f9add452fcbb775ac.tar.gz Qt-e3c7d67be8ae3121dd84a89f9add452fcbb775ac.tar.bz2 |
Get anchor change transitions working.
Diffstat (limited to 'src/declarative/util/qmlstate.cpp')
-rw-r--r-- | src/declarative/util/qmlstate.cpp | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp index 1aa7ffe..70b0137 100644 --- a/src/declarative/util/qmlstate.cpp +++ b/src/declarative/util/qmlstate.cpp @@ -92,6 +92,24 @@ void ActionEvent::reverse() { } +QList<Action> ActionEvent::extraActions() +{ + return QList<Action>(); +} + +bool ActionEvent::changesBindings() +{ + return false; +} + +void ActionEvent::clearForwardBindings() +{ +} + +void ActionEvent::clearReverseBindings() +{ +} + /*! \internal */ @@ -399,10 +417,12 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever // into this state need to be translated into apply actions for (int ii = 0; ii < d->revertList.count(); ++ii) { bool found = false; - for (int jj = 0; !found && jj < applyList.count(); ++jj) { - const Action &action = applyList.at(jj); - if (action.property == d->revertList.at(ii).property) - found = true; + if (!d->revertList.at(ii).event) { //### corresponding test for events? + for (int jj = 0; !found && jj < applyList.count(); ++jj) { + const Action &action = applyList.at(jj); + if (action.property == d->revertList.at(ii).property) + found = true; + } } if (!found) { QVariant cur = d->revertList.at(ii).property.read(); |