summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-14 05:56:53 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-14 05:56:53 (GMT)
commit9189640d5f2fada6051735e8ba699beb9435382b (patch)
treec50fc46197b7770dffda6b9e13f6c823c379a2be /src/declarative/util
parent87f9c823a96d693c95a7dd4d969b652891eb4fbe (diff)
downloadQt-9189640d5f2fada6051735e8ba699beb9435382b.zip
Qt-9189640d5f2fada6051735e8ba699beb9435382b.tar.gz
Qt-9189640d5f2fada6051735e8ba699beb9435382b.tar.bz2
More statechange debugging
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qmltransitionmanager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/declarative/util/qmltransitionmanager.cpp b/src/declarative/util/qmltransitionmanager.cpp
index 5527fe5..bb935d0 100644
--- a/src/declarative/util/qmltransitionmanager.cpp
+++ b/src/declarative/util/qmltransitionmanager.cpp
@@ -44,9 +44,12 @@
#include "qmlstate_p_p.h"
#include <qmlbinding.h>
+#include <qmlglobal_p.h>
QT_BEGIN_NAMESPACE
+DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG);
+
class QmlTransitionManagerPrivate
{
public:
@@ -238,6 +241,15 @@ void QmlTransitionManager::transition(const QList<Action> &list,
action.property.write(action.toValue);
}
}
+ if (stateChangeDebug()) {
+ foreach(const Action &action, applyList) {
+ if (action.event)
+ qWarning() << " No transition for event:" << action.event->typeName();
+ else
+ qWarning() << " No transition for:" << action.property.object()
+ << action.property.name() << action.fromValue << action.toValue;
+ }
+ }
if (!transition)
d->applyBindings();
}