QSM: Reintroduce guard argument evaluation
authorSebastian Sauer <sebastian.sauer.ford@kdab.com>
Tue, 12 Aug 2014 11:53:00 +0000 (18:53 +0700)
committerSebastian Sauer <sebastian.sauer@kdab.com>
Mon, 25 Aug 2014 15:29:21 +0000 (17:29 +0200)
commitcae7176827eb3c23428cfcd8f6dabb00f8dcaef3
tree948a32f66791eff082363c6aca5a1436cd4e9353
parent99fd3a6b22a7eabf2aff656a942b0b7e32093254
QSM: Reintroduce guard argument evaluation

Implements the suggestion from Simon Hausmann (codereview 89716
from 08-05 14:46) to use QQmlScriptString rather then the previous
used MetaObject-manipulation.

This also introduces comparison operators for QQmlScriptString
to be able to determinate if a QQmlScriptString changed what
is needed cause there is otherwise no way to access (all) the
needed details within QQmlScriptStringPrivate.

Change-Id: I198479eac8fd37cbdd98a99aacdd8eebf7b75d21
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/imports/statemachine/signaltransition.cpp
src/imports/statemachine/signaltransition.h
src/qml/doc/snippets/qml/statemachine/guardcondition.qml [new file with mode: 0644]
src/qml/qml/qqmlscriptstring.cpp
src/qml/qml/qqmlscriptstring.h
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
tests/auto/qmltest/statemachine/tst_guardcondition.qml [new file with mode: 0644]