2014-10-31 06:53:04 +00:00
|
|
|
/*
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
|
|
*/
|
2014-10-31 06:53:04 +00:00
|
|
|
#include "plugin.h"
|
2014-12-09 15:07:27 +00:00
|
|
|
#include "buttonsmodel.h"
|
2014-11-03 15:12:54 +00:00
|
|
|
#include "previewbutton.h"
|
2014-10-31 06:53:04 +00:00
|
|
|
#include "previewbridge.h"
|
|
|
|
#include "previewclient.h"
|
|
|
|
#include "previewitem.h"
|
|
|
|
#include "previewsettings.h"
|
|
|
|
|
|
|
|
#include <KDecoration2/Decoration>
|
|
|
|
#include <KDecoration2/DecorationShadow>
|
|
|
|
|
|
|
|
namespace KDecoration2
|
|
|
|
{
|
|
|
|
namespace Preview
|
|
|
|
{
|
|
|
|
|
|
|
|
void Plugin::registerTypes(const char *uri)
|
|
|
|
{
|
|
|
|
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.kwin.private.kdecoration"));
|
2015-10-20 12:22:05 +00:00
|
|
|
qmlRegisterType<KDecoration2::Preview::BridgeItem>(uri, 1, 0, "Bridge");
|
2014-10-31 06:53:04 +00:00
|
|
|
qmlRegisterType<KDecoration2::Preview::Settings>(uri, 1, 0, "Settings");
|
|
|
|
qmlRegisterType<KDecoration2::Preview::PreviewItem>(uri, 1, 0, "Decoration");
|
2014-11-03 15:12:54 +00:00
|
|
|
qmlRegisterType<KDecoration2::Preview::PreviewButtonItem>(uri, 1, 0, "Button");
|
|
|
|
qmlRegisterType<KDecoration2::Preview::ButtonsModel>(uri, 1, 0, "ButtonsModel");
|
2019-12-23 13:08:58 +00:00
|
|
|
qmlRegisterAnonymousType<KDecoration2::Preview::PreviewClient>(uri, 1);
|
|
|
|
qmlRegisterAnonymousType<KDecoration2::Decoration>(uri, 1);
|
|
|
|
qmlRegisterAnonymousType<KDecoration2::DecorationShadow>(uri, 1);
|
|
|
|
qmlRegisterAnonymousType<KDecoration2::Preview::PreviewBridge>(uri, 1);
|
2014-10-31 06:53:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|