mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-06-04 01:28:35 -04:00
Makes it possible to use in certain places that otherwise it couldn't be. Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
25 lines
708 B
C++
25 lines
708 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2023 Aleix Pol Gonzalez <aleix.pol_gonzalez@mercedes-benz.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#include <QQmlExtensionPlugin>
|
|
#include "../interfaces/window.h"
|
|
#include <qqml.h>
|
|
|
|
QML_DECLARE_TYPEINFO(LayerShellQt::Window, QML_HAS_ATTACHED_PROPERTIES)
|
|
|
|
class Plugin : public QQmlExtensionPlugin
|
|
{
|
|
Q_PLUGIN_METADATA(IID "org.kde.layershellqt")
|
|
Q_OBJECT
|
|
public:
|
|
void registerTypes(const char *uri) override {
|
|
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.layershell"));
|
|
qmlRegisterType<LayerShellQt::Window>(uri, 1, 0, "Window");
|
|
}
|
|
};
|
|
|
|
#include "layershellqtplugin.moc"
|