summaryrefslogtreecommitdiff
path: root/examples/sensors/grue
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/grue')
-rw-r--r--examples/sensors/grue/import/import.pro3
-rw-r--r--examples/sensors/grue/import/main.cpp4
-rw-r--r--examples/sensors/grue/import/plugin.json1
3 files changed, 5 insertions, 3 deletions
diff --git a/examples/sensors/grue/import/import.pro b/examples/sensors/grue/import/import.pro
index e681636..a689931 100644
--- a/examples/sensors/grue/import/import.pro
+++ b/examples/sensors/grue/import/import.pro
@@ -22,3 +22,6 @@ INSTALLS += target
qmldir.files=$$PWD/qmldir
qmldir.path=$$DESTPATH
INSTALLS += qmldir
+
+OTHER_FILES += \
+ plugin.json
diff --git a/examples/sensors/grue/import/main.cpp b/examples/sensors/grue/import/main.cpp
index 9b14fdd..4924bde 100644
--- a/examples/sensors/grue/import/main.cpp
+++ b/examples/sensors/grue/import/main.cpp
@@ -48,6 +48,7 @@ QT_BEGIN_NAMESPACE
class GrueSensorQmlImport : public QQmlExtensionPlugin
{
Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface" FILE "plugin.json")
public:
virtual void registerTypes(const char *uri)
{
@@ -68,8 +69,6 @@ QT_END_NAMESPACE
#include "main.moc"
-Q_EXPORT_PLUGIN2(gruesensorqmlimport, QT_PREPEND_NAMESPACE(GrueSensorQmlImport));
-
/*
\qmlclass GrueSensor GrueSensor
\inherits QtMobility.sensors1::Sensor
@@ -102,4 +101,3 @@ Q_EXPORT_PLUGIN2(gruesensorqmlimport, QT_PREPEND_NAMESPACE(GrueSensorQmlImport))
\qmlproperty qreal Grue1::GrueSensorReading::chanceOfBeingEaten
Please see GrueSensorReading::chanceOfBeingEaten for information about this property.
*/
-
diff --git a/examples/sensors/grue/import/plugin.json b/examples/sensors/grue/import/plugin.json
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/examples/sensors/grue/import/plugin.json
@@ -0,0 +1 @@
+{}