summaryrefslogtreecommitdiffstats
path: root/examples/scxml/mediaplayer-common
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/mediaplayer-common
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/mediaplayer-common')
-rw-r--r--examples/scxml/mediaplayer-common/Mediaplayer.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scxml/mediaplayer-common/Mediaplayer.qml b/examples/scxml/mediaplayer-common/Mediaplayer.qml
index c5e0bcf..fdeb9d2 100644
--- a/examples/scxml/mediaplayer-common/Mediaplayer.qml
+++ b/examples/scxml/mediaplayer-common/Mediaplayer.qml
@@ -50,11 +50,11 @@
import QtQuick 2.5
import QtQuick.Window 2.2
-import QtScxml 5.7
+import QtScxml 5.8
Window {
id: root
- property QtObject stateMachine: scxmlLoader.stateMachine
+ property StateMachine stateMachine: scxmlLoader.stateMachine
property alias source: scxmlLoader.source
visible: true