diff options
Diffstat (limited to 'src/imports/workerscript')
-rw-r--r-- | src/imports/workerscript/plugin.cpp | 15 | ||||
-rw-r--r-- | src/imports/workerscript/plugins.qmltypes | 26 |
2 files changed, 3 insertions, 38 deletions
diff --git a/src/imports/workerscript/plugin.cpp b/src/imports/workerscript/plugin.cpp index 2d8797db7e..b2f8e6b3bc 100644 --- a/src/imports/workerscript/plugin.cpp +++ b/src/imports/workerscript/plugin.cpp @@ -37,7 +37,6 @@ ** ****************************************************************************/ -#include <QtQmlWorkerScript/private/qqmlworkerscriptmodule_p.h> #include <QtQml/qqmlextensionplugin.h> #include <QtQml/qqml.h> @@ -59,20 +58,12 @@ QT_BEGIN_NAMESPACE \endqml */ -class QtQmlWorkerScriptPlugin : public QQmlExtensionPlugin +class QtQmlWorkerScriptPlugin : public QQmlEngineExtensionPlugin { Q_OBJECT - Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) + Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid) public: - QtQmlWorkerScriptPlugin(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) { } - void registerTypes(const char *uri) override - { - Q_ASSERT(QLatin1String(uri) == QLatin1String("QtQml.WorkerScript")); - - QQmlWorkerScriptModule::defineModule(); - - qmlRegisterModule(uri, 2, 15); - } + QtQmlWorkerScriptPlugin(QObject *parent = nullptr) : QQmlEngineExtensionPlugin(parent) { } }; QT_END_NAMESPACE diff --git a/src/imports/workerscript/plugins.qmltypes b/src/imports/workerscript/plugins.qmltypes deleted file mode 100644 index b1d6107022..0000000000 --- a/src/imports/workerscript/plugins.qmltypes +++ /dev/null @@ -1,26 +0,0 @@ -import QtQuick.tooling 1.2 - -// This file describes the plugin-supplied types contained in the library. -// It is used for QML tooling purposes only. -// -// This file was auto-generated by: -// 'qmlplugindump -nonrelocatable -dependencies dependencies.json QtQml.WorkerScript 2.14' - -Module { - dependencies: [] - Component { - name: "QQuickWorkerScript" - prototype: "QObject" - exports: ["QtQml.WorkerScript/WorkerScript 2.0"] - exportMetaObjectRevisions: [0] - Property { name: "source"; type: "QUrl" } - Signal { - name: "message" - Parameter { name: "messageObject"; type: "QJSValue" } - } - Method { - name: "sendMessage" - Parameter { type: "QQmlV4Function"; isPointer: true } - } - } -} |