File indexing completed on 2024-11-24 04:59:27

0001 /*
0002     SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org>
0003     SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "plugin.h"
0009 #include "plasmatheme.h"
0010 #include "units.h"
0011 
0012 Plugin::Plugin(QObject *parent)
0013     : Kirigami::Platform::PlatformPluginFactory(parent)
0014 {
0015 }
0016 
0017 Plugin::~Plugin() = default;
0018 
0019 Kirigami::Platform::PlatformTheme *Plugin::createPlatformTheme(QObject *parent)
0020 {
0021     Q_UNUSED(parent);
0022     // TODO: Implement a proper C++ version of PlatformTheme. This relies on fallback
0023     // behaviour in Kirigami to load the Theme.qml file.
0024     return new PlasmaTheme(parent);
0025 }
0026 
0027 Kirigami::Platform::Units *Plugin::createUnits(QObject *parent)
0028 {
0029     Q_ASSERT(parent);
0030     return new Units(parent);
0031 }
0032 
0033 #include "moc_plugin.cpp"