diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-02 15:19:30 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-12 12:39:28 +0000 |
commit | a632dd38b68319d9086b7313c9beb2c1ca6d0d0b (patch) | |
tree | a73df8b8b717b3ec447b7166ab9529f2a5f5e062 | |
parent | bdbe7d947a65070b59ac24cf9f05247037863ef8 (diff) |
Cleanup and rename QML scxmlstatemachine plugin
The Qt modules use the Qt prefix and the project file should rely on
qmake's qml_plugin logic.
Change-Id: I9a13109d6307679c1e7362680eaf9c33e2bdda3b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
11 files changed, 17 insertions, 16 deletions
diff --git a/examples/scxml/invoke-dynamic/invoke-dynamic.qml b/examples/scxml/invoke-dynamic/invoke-dynamic.qml index d0cfa4d..105422d 100644 --- a/examples/scxml/invoke-dynamic/invoke-dynamic.qml +++ b/examples/scxml/invoke-dynamic/invoke-dynamic.qml @@ -48,7 +48,7 @@ ** ****************************************************************************/ -import Scxml 1.0 as Scxml +import QtScxml 1.0 as Scxml MainView { stateMachine: directions.stateMachine diff --git a/examples/scxml/mediaplayer-common/Mediaplayer.qml b/examples/scxml/mediaplayer-common/Mediaplayer.qml index c3e1b98..b3181a8 100644 --- a/examples/scxml/mediaplayer-common/Mediaplayer.qml +++ b/examples/scxml/mediaplayer-common/Mediaplayer.qml @@ -50,7 +50,7 @@ import QtQuick 2.5 import QtQuick.Window 2.2 -import Scxml 1.0 as Scxml +import QtScxml 1.0 as Scxml Window { id: root diff --git a/examples/scxml/mediaplayer-common/doc/src/mediaplayer-dynamic.qdocinc b/examples/scxml/mediaplayer-common/doc/src/mediaplayer-dynamic.qdocinc index e9ae43b..94062ad 100644 --- a/examples/scxml/mediaplayer-common/doc/src/mediaplayer-dynamic.qdocinc +++ b/examples/scxml/mediaplayer-common/doc/src/mediaplayer-dynamic.qdocinc @@ -11,5 +11,5 @@ \e mediaplayer-common\Mediaplayer.qml: \quotefromfile mediaplayer-common/Mediaplayer.qml - \skipto import Scxml + \skipto import QtScxml \printuntil scxmlLoader.filename diff --git a/examples/scxml/trafficlight-qml-dynamic/doc/src/trafficlight-qml-dynamic.qdoc b/examples/scxml/trafficlight-qml-dynamic/doc/src/trafficlight-qml-dynamic.qdoc index c2846d9..ecbf090 100644 --- a/examples/scxml/trafficlight-qml-dynamic/doc/src/trafficlight-qml-dynamic.qdoc +++ b/examples/scxml/trafficlight-qml-dynamic/doc/src/trafficlight-qml-dynamic.qdoc @@ -54,7 +54,7 @@ We dynamically create the state machine in the main QML file: \quotefromfile trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml - \skipto import Scxml + \skipto import QtScxml \printuntil /^\}/ \include trafficlight-state-machine.qdocinc diff --git a/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml b/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml index 3b406c7..a6997e3 100644 --- a/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml +++ b/examples/scxml/trafficlight-qml-dynamic/trafficlight-qml-dynamic.qml @@ -48,7 +48,7 @@ ** ****************************************************************************/ -import Scxml 1.0 as Scxml +import QtScxml 1.0 as Scxml TrafficLight { Scxml.StateMachineLoader { diff --git a/src/imports/scxmlstatemachine/plugins.qmltypes b/src/imports/scxmlstatemachine/plugins.qmltypes index 19b4acb..bc452d6 100644 --- a/src/imports/scxmlstatemachine/plugins.qmltypes +++ b/src/imports/scxmlstatemachine/plugins.qmltypes @@ -4,14 +4,14 @@ import QtQuick.tooling 1.2 // It is used for QML tooling purposes only. // // This file was auto-generated by: -// 'qmlplugindump -nonrelocatable Scxml 1.0' +// 'qmlplugindump -nonrelocatable QtScxml 1.0' Module { dependencies: ["QtQuick 2.0"] Component { name: "QScxmlStateMachineLoader" prototype: "QObject" - exports: ["Scxml/StateMachineLoader 1.0"] + exports: ["QtScxml/StateMachineLoader 1.0"] exportMetaObjectRevisions: [0] Property { name: "filename"; type: "QUrl" } Property { name: "stateMachine"; type: "QScxmlStateMachine"; isReadonly: true; isPointer: true } diff --git a/src/imports/scxmlstatemachine/qmldir b/src/imports/scxmlstatemachine/qmldir index a411f70..e1fd0ee 100644 --- a/src/imports/scxmlstatemachine/qmldir +++ b/src/imports/scxmlstatemachine/qmldir @@ -1,4 +1,5 @@ -module Scxml -plugin scxmlstatemachine -classname ScxmlStateMachinePlugin +module QtScxml +plugin declarative_scxmlstatemachine +classname QScxmlStateMachinePlugin +typeinfo plugins.qmltypes diff --git a/src/imports/scxmlstatemachine/scxmlstatemachine.pro b/src/imports/scxmlstatemachine/scxmlstatemachine.pro index 5aa317c..c178157 100644 --- a/src/imports/scxmlstatemachine/scxmlstatemachine.pro +++ b/src/imports/scxmlstatemachine/scxmlstatemachine.pro @@ -1,6 +1,4 @@ -CXX_MODULE = qml -TARGET = scxmlstatemachine -TARGETPATH = Scxml +TARGETPATH = QtScxml IMPORT_VERSION = 1.0 QT = scxml qml-private core-private @@ -13,3 +11,5 @@ HEADERS = \ $$PWD/statemachineloader.h load(qml_plugin) + +OTHER_FILES += plugins.qmltypes qmldir diff --git a/src/scxml/doc/qtscxml-index.qdoc b/src/scxml/doc/qtscxml-index.qdoc index 42ad9a4..4f2fd7b 100644 --- a/src/scxml/doc/qtscxml-index.qdoc +++ b/src/scxml/doc/qtscxml-index.qdoc @@ -52,7 +52,7 @@ in your .qml file: \code - import Scxml 1.0 + import QtScxml 1.0 \endcode To link against the module, add this line to your qmake .pro file: diff --git a/src/scxml/doc/qtscxml-instantiating-state-machines.qdoc b/src/scxml/doc/qtscxml-instantiating-state-machines.qdoc index fefa218..755e3ac 100644 --- a/src/scxml/doc/qtscxml-instantiating-state-machines.qdoc +++ b/src/scxml/doc/qtscxml-instantiating-state-machines.qdoc @@ -43,7 +43,7 @@ Or, in QML: \qml - import Scxml 1.0 + import QtScxml 1.0 Item { property QtObject stateMachine: scxmlLoader.stateMachine diff --git a/src/scxml/doc/qtscxml-module-qml.qdoc b/src/scxml/doc/qtscxml-module-qml.qdoc index 3f3c4ad..5510c2c 100644 --- a/src/scxml/doc/qtscxml-module-qml.qdoc +++ b/src/scxml/doc/qtscxml-module-qml.qdoc @@ -35,7 +35,7 @@ in your .qml file: \code - import Scxml 1.0 + import QtScxml 1.0 \endcode For more information, see \l{Instantiating State Machines}. |