diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-09-06 11:18:25 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-09-06 13:15:02 +0000 |
commit | 23a55352eb0ada2832fcb5c461ec8f37cd6fc530 (patch) | |
tree | aeed949ad96f5d3929b5564614162bdb86f7c214 /examples | |
parent | f0e0ed3fc3231dcc8dd2cc19034003d4c068c7eb (diff) |
Rename StateMachineLoader.filename to "source"
It's a URL, so it shouldn't be called filename. Otherwise people will
try to use it with plain filenames, omitting the qrc:// or file://
prefix.
Change-Id: I01be8515ba03c58c0dd1fce6b0e1e5fa413b9839
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'examples')
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/scxml/invoke-dynamic/invoke-dynamic.qml b/examples/scxml/invoke-dynamic/invoke-dynamic.qml index 616928e..0e38d67 100644 --- a/examples/scxml/invoke-dynamic/invoke-dynamic.qml +++ b/examples/scxml/invoke-dynamic/invoke-dynamic.qml @@ -55,6 +55,6 @@ MainView { Scxml.StateMachineLoader { id: directions - filename: "qrc:///statemachine.scxml" + source: "qrc:///statemachine.scxml" } } diff --git a/examples/scxml/mediaplayer-common/Mediaplayer.qml b/examples/scxml/mediaplayer-common/Mediaplayer.qml index 1804b55..c5e0bcf 100644 --- a/examples/scxml/mediaplayer-common/Mediaplayer.qml +++ b/examples/scxml/mediaplayer-common/Mediaplayer.qml @@ -55,7 +55,7 @@ import QtScxml 5.7 Window { id: root property QtObject stateMachine: scxmlLoader.stateMachine - property alias filename: scxmlLoader.filename + property alias source: scxmlLoader.source visible: true width: 750 diff --git a/examples/scxml/mediaplayer-qml-dynamic/mediaplayer-qml-dynamic.qml b/examples/scxml/mediaplayer-qml-dynamic/mediaplayer-qml-dynamic.qml index 3e936c3..864a76f 100644 --- a/examples/scxml/mediaplayer-qml-dynamic/mediaplayer-qml-dynamic.qml +++ b/examples/scxml/mediaplayer-qml-dynamic/mediaplayer-qml-dynamic.qml @@ -49,5 +49,5 @@ ****************************************************************************/ Mediaplayer { - filename: "qrc:///mediaplayer.scxml" + source: "qrc:///mediaplayer.scxml" } diff --git a/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml b/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml index 772d2fb..c04c877 100644 --- a/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml +++ b/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml @@ -53,7 +53,7 @@ import QtScxml 5.7 as Scxml TrafficLight { Scxml.StateMachineLoader { id: loader - filename: "qrc:///statemachine.scxml" + source: "qrc:///statemachine.scxml" } stateMachine: loader.stateMachine |