c0274df69a
NO_CHANGELOG
29 lines
770 B
C++
29 lines
770 B
C++
/*
|
|
SPDX-FileCopyrightText: 2012 Sebastian Kügler <sebas@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#include "plasmaextracomponentsplugin.h"
|
|
|
|
#include "appbackgroundprovider_p.h"
|
|
#include "fallbackcomponent.h"
|
|
|
|
#include <QQmlEngine>
|
|
#include <QtQml>
|
|
|
|
// #include <KSharedConfig>
|
|
// #include <KConfigGroup>
|
|
|
|
void PlasmaExtraComponentsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
|
|
{
|
|
Q_ASSERT(uri == QByteArray("org.kde.plasma.extras"));
|
|
engine->addImageProvider(QStringLiteral("appbackgrounds"), new AppBackgroundProvider);
|
|
}
|
|
|
|
void PlasmaExtraComponentsPlugin::registerTypes(const char *uri)
|
|
{
|
|
Q_ASSERT(uri == QByteArray("org.kde.plasma.extras"));
|
|
qmlRegisterType<FallbackComponent>(uri, 2, 0, "FallbackComponent");
|
|
}
|