aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/wavefrontmesh
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-01-16 16:25:06 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-01-16 16:25:06 +0100
commit1d333d3375874efb8d37df37dc5ef561573794ad (patch)
tree2d8c995f64c05c84c1fcceb2c5cb40fcae69855f /src/imports/wavefrontmesh
parentb106d86c433706928b0b0c206a0d9f831681e1bf (diff)
parente79a2658cde899d6ee11ec3c0d0a3768eb2c864b (diff)
Merge remote-tracking branch 'origin/dev' into wip/cmake
Diffstat (limited to 'src/imports/wavefrontmesh')
-rw-r--r--src/imports/wavefrontmesh/plugin.cpp14
-rw-r--r--src/imports/wavefrontmesh/plugins.qmltypes37
-rw-r--r--src/imports/wavefrontmesh/wavefrontmesh.pro3
3 files changed, 5 insertions, 49 deletions
diff --git a/src/imports/wavefrontmesh/plugin.cpp b/src/imports/wavefrontmesh/plugin.cpp
index 937d3a8ff0..9bb7a45b2f 100644
--- a/src/imports/wavefrontmesh/plugin.cpp
+++ b/src/imports/wavefrontmesh/plugin.cpp
@@ -44,23 +44,15 @@
QT_BEGIN_NAMESPACE
-class QmlWavefrontMeshPlugin : public QQmlExtensionPlugin
+class QmlWavefrontMeshPlugin : public QQmlEngineExtensionPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
+ Q_PLUGIN_METADATA(IID QQmlEngineExtensionInterface_iid)
public:
QmlWavefrontMeshPlugin(QObject *parent = nullptr)
- : QQmlExtensionPlugin(parent)
+ : QQmlEngineExtensionPlugin(parent)
{
}
-
- void registerTypes(const char *uri) override
- {
- Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.wavefrontmesh"));
- qmlRegisterTypesAndRevisions<QWavefrontMesh>(uri, 1);
-
- qmlRegisterModule(uri, 1, 15);
- }
};
QT_END_NAMESPACE
diff --git a/src/imports/wavefrontmesh/plugins.qmltypes b/src/imports/wavefrontmesh/plugins.qmltypes
deleted file mode 100644
index 4e6a1dca73..0000000000
--- a/src/imports/wavefrontmesh/plugins.qmltypes
+++ /dev/null
@@ -1,37 +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 Qt.labs.wavefrontmesh 1.14'
-
-Module {
- dependencies: ["QtQuick 2.0"]
- Component {
- name: "QWavefrontMesh"
- prototype: "QQuickShaderEffectMesh"
- exports: ["Qt.labs.wavefrontmesh/WavefrontMesh 1.0"]
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Error"
- values: {
- "NoError": 0,
- "InvalidSourceError": 1,
- "UnsupportedFaceShapeError": 2,
- "UnsupportedIndexSizeError": 3,
- "FileNotFoundError": 4,
- "NoAttributesError": 5,
- "MissingPositionAttributeError": 6,
- "MissingTextureCoordinateAttributeError": 7,
- "MissingPositionAndTextureCoordinateAttributesError": 8,
- "TooManyAttributesError": 9,
- "InvalidPlaneDefinitionError": 10
- }
- }
- Property { name: "source"; type: "QUrl" }
- Property { name: "lastError"; type: "Error"; isReadonly: true }
- Property { name: "projectionPlaneV"; type: "QVector3D" }
- Property { name: "projectionPlaneW"; type: "QVector3D" }
- }
-}
diff --git a/src/imports/wavefrontmesh/wavefrontmesh.pro b/src/imports/wavefrontmesh/wavefrontmesh.pro
index 85bd500089..f6d93b867d 100644
--- a/src/imports/wavefrontmesh/wavefrontmesh.pro
+++ b/src/imports/wavefrontmesh/wavefrontmesh.pro
@@ -1,7 +1,7 @@
CXX_MODULE = qml
TARGET = qmlwavefrontmeshplugin
TARGETPATH = Qt/labs/wavefrontmesh
-IMPORT_VERSION = 1.$$QT_MINOR_VERSION
+IMPORT_VERSION = 1.15
QT = core-private qml-private quick-private
@@ -12,4 +12,5 @@ SOURCES += \
HEADERS += \
qwavefrontmesh.h
+CONFIG += qmltypes install_qmltypes
load(qml_plugin)