| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #include <QtWaylandClient/private/qwaylandshellintegrationplugin_p.h> |
| 5 | #include "qwaylandqtshellintegration.h" |
| 6 | |
| 7 | QT_BEGIN_NAMESPACE |
| 8 | |
| 9 | namespace QtWaylandClient { |
| 10 | |
| 11 | class QWaylandQtShellIntegrationPlugin : public QWaylandShellIntegrationPlugin |
| 12 | { |
| 13 | Q_OBJECT |
| 14 | Q_PLUGIN_METADATA(IID QWaylandShellIntegrationFactoryInterface_iid FILE "qt-shell.json") |
| 15 | |
| 16 | public: |
| 17 | QWaylandShellIntegration *create(const QString &key, const QStringList ¶mList) override; |
| 18 | }; |
| 19 | |
| 20 | QWaylandShellIntegration *QWaylandQtShellIntegrationPlugin::create(const QString &key, const QStringList ¶mList) |
| 21 | { |
| 22 | Q_UNUSED(key); |
| 23 | Q_UNUSED(paramList); |
| 24 | return new QWaylandQtShellIntegration(); |
| 25 | } |
| 26 | |
| 27 | } |
| 28 | |
| 29 | QT_END_NAMESPACE |
| 30 | |
| 31 | #include "main.moc" |
| 32 |
