summaryrefslogtreecommitdiffstats
path: root/examples/scxml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-08-15 09:44:07 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2016-08-18 13:51:57 +0000
commit7a373c735224cc22055436fe26df9430b53045ed (patch)
tree4be98485cdc01ed5362b996bbaddb6b56ffb395d /examples/scxml
parentb9a1923f50cf9f77658ada6b8b95d44e173c8cd6 (diff)
Add a QML default property for QScxmlStateMachine
The extension object will be injected into any state machine constructed from QML. This way child QML objects can be added to a state machine without explicitly declaring properties. Change-Id: If8ec048137cbfb88c3317dee6f626a1cb74248dc Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'examples/scxml')
-rw-r--r--examples/scxml/calculator-qml/calculator-qml.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scxml/calculator-qml/calculator-qml.qml b/examples/scxml/calculator-qml/calculator-qml.qml
index 9d679f6..fb32a69 100644
--- a/examples/scxml/calculator-qml/calculator-qml.qml
+++ b/examples/scxml/calculator-qml/calculator-qml.qml
@@ -62,7 +62,7 @@ Window {
CalculatorStateMachine {
id: statemachine
running: true
- property var connection: EventConnection {
+ EventConnection {
events: ["updateDisplay"]
onOccurred: resultText.text = event.data.display
}