summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/wayland/main.cpp')
-rw-r--r--src/plugins/platforms/wayland/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/main.cpp b/src/plugins/platforms/wayland/main.cpp
index 70f92f307..08d4c5ae7 100644
--- a/src/plugins/platforms/wayland/main.cpp
+++ b/src/plugins/platforms/wayland/main.cpp
@@ -46,6 +46,8 @@ QT_BEGIN_NAMESPACE
class QWaylandIntegrationPlugin : public QPlatformIntegrationPlugin
{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "wayland.json")
public:
QStringList keys() const;
QPlatformIntegration *create(const QString&, const QStringList&);
@@ -67,6 +69,6 @@ QPlatformIntegration *QWaylandIntegrationPlugin::create(const QString& system, c
return 0;
}
-Q_EXPORT_PLUGIN2(wayland, QWaylandIntegrationPlugin)
-
QT_END_NAMESPACE
+
+#include "main.moc"