Libplasma

plugin.cpp
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 "plasmatheme.h"
10#include "units.h"
11
12Plugin::Plugin(QObject *parent)
13 : Kirigami::Platform::PlatformPluginFactory(parent)
14{
15}
16
17Plugin::~Plugin() = default;
18
19Kirigami::Platform::PlatformTheme *Plugin::createPlatformTheme(QObject *parent)
20{
21 Q_UNUSED(parent);
22 // TODO: Implement a proper C++ version of PlatformTheme. This relies on fallback
23 // behaviour in Kirigami to load the Theme.qml file.
24 return new PlasmaTheme(parent);
25}
26
27Kirigami::Platform::Units *Plugin::createUnits(QObject *parent)
28{
29 Q_ASSERT(parent);
30 return new Units(parent);
31}
32
33#include "moc_plugin.cpp"
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.