From 7a373c735224cc22055436fe26df9430b53045ed Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 15 Aug 2016 09:44:07 +0200 Subject: 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 --- examples/scxml/calculator-qml/calculator-qml.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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 } -- cgit v1.2.3