1 /* 2 SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org> 3 SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl> 4 5 SPDX-License-Identifier: LGPL-2.0-or-later 6 */ 7 8 #include "plugin.h" 9 #include "units.h" 10 Plugin(QObject * parent)11Plugin::Plugin(QObject *parent) 12 : Kirigami::KirigamiPluginFactoryV2(parent) 13 { 14 } 15 16 Plugin::~Plugin() = default; 17 createPlatformTheme(QObject * parent)18Kirigami::PlatformTheme *Plugin::createPlatformTheme(QObject *parent) 19 { 20 Q_UNUSED(parent); 21 // TODO: Implement a proper C++ version of PlatformTheme. This relies on fallback 22 // behaviour in Kirigami to load the Theme.qml file. 23 return nullptr; 24 } 25 createUnits(QObject * parent)26Kirigami::Units *Plugin::createUnits(QObject *parent) 27 { 28 Q_ASSERT(parent); 29 return new Units(parent); 30 } 31 32 #include "moc_plugin.cpp" 33