summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlstate.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-06-30 02:55:10 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-06-30 02:55:10 (GMT)
commit3c6648385e8637536292c1351ef0d52708bd07d2 (patch)
tree305f4c065d83129f65545ef436c79f9492692226 /src/declarative/util/qmlstate.cpp
parent6856dd2850245414fb610e651391f5fe141605de (diff)
downloadQt-3c6648385e8637536292c1351ef0d52708bd07d2.zip
Qt-3c6648385e8637536292c1351ef0d52708bd07d2.tar.gz
Qt-3c6648385e8637536292c1351ef0d52708bd07d2.tar.bz2
Support animating dot properties.
Make sure we can handle things like PropertyAnimation { property: "anchors.leftMargin" }
Diffstat (limited to 'src/declarative/util/qmlstate.cpp')
-rw-r--r--src/declarative/util/qmlstate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp
index fe215e7..8ac1b33 100644
--- a/src/declarative/util/qmlstate.cpp
+++ b/src/declarative/util/qmlstate.cpp
@@ -53,7 +53,7 @@ QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG);
-Action::Action() : restore(true), actionDone(false), fromBinding(0), toBinding(0), event(0)
+Action::Action() : restore(true), actionDone(false), fromBinding(0), toBinding(0), event(0), specifiedObject(0)
{
}
@@ -403,6 +403,8 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
a.fromValue = cur;
a.toValue = d->revertList.at(ii).value;
a.toBinding = d->revertList.at(ii).binding;
+ a.specifiedObject = d->revertList.at(ii).specifiedObject; //###
+ a.specifiedProperty = d->revertList.at(ii).specifiedProperty;
applyList << a;
// Store these special reverts in the reverting list
d->reverting << d->revertList.at(ii).property;