summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlstate_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmlstate_p.h')
-rw-r--r--src/declarative/util/qmlstate_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/util/qmlstate_p.h b/src/declarative/util/qmlstate_p.h
index 73e2377..b601b57 100644
--- a/src/declarative/util/qmlstate_p.h
+++ b/src/declarative/util/qmlstate_p.h
@@ -69,12 +69,15 @@ public:
property = a.property;
specifiedObject = a.specifiedObject;
specifiedProperty = a.specifiedProperty;
+ event = a.event;
if (state == StartState) {
value = a.fromValue;
binding = property.binding();
+ reverseEvent = true;
} else {
value = a.toValue;
binding = a.toBinding;
+ reverseEvent = false;
}
}
@@ -83,6 +86,8 @@ public:
QmlBinding *binding;
QObject *specifiedObject;
QString specifiedProperty;
+ ActionEvent *event;
+ bool reverseEvent;
};
class QmlStatePrivate : public QObjectPrivate