diff options
Diffstat (limited to 'src/plugins/platforms/qwayland-xcomposite-egl/main.cpp')
-rw-r--r-- | src/plugins/platforms/qwayland-xcomposite-egl/main.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/plugins/platforms/qwayland-xcomposite-egl/main.cpp b/src/plugins/platforms/qwayland-xcomposite-egl/main.cpp index b065a4659..d3f5a0b54 100644 --- a/src/plugins/platforms/qwayland-xcomposite-egl/main.cpp +++ b/src/plugins/platforms/qwayland-xcomposite-egl/main.cpp @@ -47,26 +47,16 @@ QT_BEGIN_NAMESPACE class QWaylandIntegrationPlugin : public QPlatformIntegrationPlugin { Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.2" FILE "qwayland-xcomposite-egl.json") + Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "qwayland-xcomposite-egl.json") public: - QStringList keys() const; - QPlatformIntegration *create(const QString&, const QStringList&); + QPlatformIntegration *create(const QString&, const QStringList&) Q_DECL_OVERRIDE; }; -QStringList QWaylandIntegrationPlugin::keys() const -{ - QStringList list; - list << "wayland-xcomposite" << "wayland-xcomposite-egl"; - return list; -} - QPlatformIntegration *QWaylandIntegrationPlugin::create(const QString& system, const QStringList& paramList) { Q_UNUSED(paramList); - if (system.toLower() == "wayland-xcomposite" || system.toLower() == "wayland-xcomposite-egl") - return new QWaylandXCompositeEglPlatformIntegration(); - - return 0; + Q_UNUSED(system); + return new QWaylandXCompositeEglPlatformIntegration(); } QT_END_NAMESPACE |