aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/cppextensions/imageprovider/imageprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/cppextensions/imageprovider/imageprovider.cpp')
-rw-r--r--examples/qml/cppextensions/imageprovider/imageprovider.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/qml/cppextensions/imageprovider/imageprovider.cpp b/examples/qml/cppextensions/imageprovider/imageprovider.cpp
index 506d5b0812..f6632a89e8 100644
--- a/examples/qml/cppextensions/imageprovider/imageprovider.cpp
+++ b/examples/qml/cppextensions/imageprovider/imageprovider.cpp
@@ -87,6 +87,7 @@ public:
class ImageProviderExtensionPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface" FILE "imageprovider.json")
public:
void registerTypes(const char *uri)
{
@@ -101,7 +102,8 @@ public:
};
-#include "imageprovider.moc"
-Q_EXPORT_PLUGIN(ImageProviderExtensionPlugin);
+#define QQmlExtensionInterface_iid "org.qt-project.Qt.QQmlExtensionInterface"
+
+#include "imageprovider.moc"