summaryrefslogtreecommitdiffstats
path: root/examples/scxml/trafficlight-qml-dynamic
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-09-26 16:28:56 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-09-27 09:59:11 +0000
commit9c9b556025d370bf70a60f46b1674a6c950fd491 (patch)
treec5d180a99dd086f1221c9cb5900ed1ac9108b601 /examples/scxml/trafficlight-qml-dynamic
parent432bb2234a01911784296ad743ca14b156b356c0 (diff)
Update plugins.qmltypes
Also, have the extended state machine type follow the usual naming scheme, and increment the minor version everywhere. Since we don't need to be compatible with 5.7 we don't need to drag the 5.7 version around at all. In addition, we also don't need to namespace QtScxml in any QML context and, using the additional type information, we can easily constrain the types of all state machiens in QML. The fromFile() and fromData() methods don't have to be Q_INVOKABLE and that just confuses qmlplugindump, do drop Q_INVOKABLE there. Change-Id: I7bd3f10ac458d64fcb98caece770b5d4c61abdb5 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'examples/scxml/trafficlight-qml-dynamic')
-rw-r--r--examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml b/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml
index c04c877..aef249a 100644
--- a/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml
+++ b/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml
@@ -48,10 +48,10 @@
**
****************************************************************************/
-import QtScxml 5.7 as Scxml
+import QtScxml 5.8
TrafficLight {
- Scxml.StateMachineLoader {
+ StateMachineLoader {
id: loader
source: "qrc:///statemachine.scxml"
}