summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlstate.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-07-24 00:06:42 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-07-24 00:06:42 (GMT)
commit8ba5e3b86984fce9fd3999d643cad6a732653940 (patch)
treed6cd1e14f0e5121d82f6d4202616f197913147a4 /src/declarative/util/qmlstate.cpp
parent8a67aa7d4397bf0fb2d24724c0d3588136f3c93e (diff)
parentf2a0676485522b58e38b74b76d039611d6baa965 (diff)
downloadQt-8ba5e3b86984fce9fd3999d643cad6a732653940.zip
Qt-8ba5e3b86984fce9fd3999d643cad6a732653940.tar.gz
Qt-8ba5e3b86984fce9fd3999d643cad6a732653940.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/util/qmlstate.cpp')
-rw-r--r--src/declarative/util/qmlstate.cpp28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp
index a5fe8a7..c41c31a 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();