aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/wavefrontmesh/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/wavefrontmesh/plugin.cpp')
-rw-r--r--src/imports/wavefrontmesh/plugin.cpp14
1 files changed, 3 insertions, 11 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