Warning, file /frameworks/qqc2-desktop-style/kirigami-plasmadesktop-integration/kirigamiplasmafactory.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 #include "plasmadesktoptheme.h"
0009 #include "plasmadesktopunits.h"
0010 
0011 KirigamiPlasmaFactory::KirigamiPlasmaFactory(QObject *parent)
0012     : Kirigami::KirigamiPluginFactoryV2(parent)
0013 {
0014 }
0015 
0016 KirigamiPlasmaFactory::~KirigamiPlasmaFactory() = default;
0017 
0018 Kirigami::PlatformTheme *KirigamiPlasmaFactory::createPlatformTheme(QObject *parent)
0019 {
0020     Q_ASSERT(parent);
0021     return new PlasmaDesktopTheme(parent);
0022 }
0023 
0024 Kirigami::Units *KirigamiPlasmaFactory::createUnits(QObject *parent)
0025 {
0026     Q_ASSERT(parent);
0027     return new PlasmaDesktopUnits(parent);
0028 }
0029 
0030 #include "moc_kirigamiplasmafactory.cpp"