File indexing completed on 2024-04-28 05:36:24

0001 /*
0002     SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org>
0003     SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "kirigamiplasmafactory.h"
0008 #include "plasmadesktoptheme.h"
0009 #include "units.h"
0010 
0011 KirigamiPlasmaFactory::KirigamiPlasmaFactory(QObject *parent)
0012     : Kirigami::Platform::PlatformPluginFactory(parent)
0013 {
0014 }
0015 
0016 KirigamiPlasmaFactory::~KirigamiPlasmaFactory() = default;
0017 
0018 Kirigami::Platform::PlatformTheme *KirigamiPlasmaFactory::createPlatformTheme(QObject *parent)
0019 {
0020     Q_ASSERT(parent);
0021     return new PlasmaDesktopTheme(parent);
0022 }
0023 
0024 Kirigami::Platform::Units *KirigamiPlasmaFactory::createUnits(QObject *parent)
0025 {
0026     Q_ASSERT(parent);
0027     return new Units(parent);
0028 }
0029 
0030 #include "moc_kirigamiplasmafactory.cpp"