File indexing completed on 2024-04-21 04:00:35

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