mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-15 03:24:26 -04:00
Initial commit
This commit is contained in:
34
src/qwaylandlayershellintegrationplugin.cpp
Normal file
34
src/qwaylandlayershellintegrationplugin.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
||||
* SPDX-FileCopyrightText: 2018 Drew DeVault <sir@cmpwn.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include <QtWaylandClient/private/qwaylandshellintegrationplugin_p.h>
|
||||
#include "qwaylandlayershellintegration_p.h"
|
||||
|
||||
using namespace LayerShellQt;
|
||||
|
||||
class QWaylandLayerShellIntegrationPlugin :
|
||||
public QtWaylandClient::QWaylandShellIntegrationPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(
|
||||
IID QWaylandShellIntegrationFactoryInterface_iid
|
||||
FILE "layer-shell.json")
|
||||
|
||||
public:
|
||||
QWaylandLayerShellIntegrationPlugin() {}
|
||||
|
||||
QtWaylandClient::QWaylandShellIntegration *create(
|
||||
const QString &key, const QStringList ¶mList) override {
|
||||
Q_UNUSED(key);
|
||||
Q_UNUSED(paramList);
|
||||
return new QWaylandLayerShellIntegration();
|
||||
}
|
||||
};
|
||||
|
||||
// Q_IMPORT_PLUGIN(QWaylandLayerShellIntegrationPlugin);
|
||||
|
||||
#include "qwaylandlayershellintegrationplugin.moc"
|
Reference in New Issue
Block a user