1 /* This file is part of the KDE's Plasma desktop
2 SPDX-FileCopyrightText: 2017 David Edmundson <davidedmundson@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #include "kcmqtquicksettings.h"
8
9 #include <KAboutData>
10 #include <KPluginFactory>
11 #include <QDebug>
12
13 #include "renderersettings.h"
14 #include "ui_kcmqtquicksettingswidget.h"
15
K_PLUGIN_FACTORY(KCMQtQuickSettingsFactory,registerPlugin<KCMQtQuickSettingsModule> ();)16 K_PLUGIN_FACTORY(KCMQtQuickSettingsFactory, registerPlugin<KCMQtQuickSettingsModule>();)
17
18 KCMQtQuickSettingsModule::KCMQtQuickSettingsModule(QWidget *parent, const QVariantList &args)
19 : KCModule(parent, args)
20 , m_ui(new Ui::KCMQtQuickSettingsWidget)
21 , m_settings(new PlasmaQtQuickSettings::RendererSettings(KSharedConfig::openConfig(QStringLiteral("kdeglobals"))))
22 {
23 KAboutData *about = new KAboutData(QStringLiteral("Plasma QtQuick Settings"),
24 i18n("Plasma QtQuick Settings"),
25 QString(),
26 i18n("Configure Plasma QtQuick Settings"),
27 KAboutLicense::GPL);
28 about->addAuthor(i18n("David Edmundson"), i18n("Maintainer"), QStringLiteral("davidedmundson@kde.org"));
29 setAboutData(about);
30
31 m_ui->setupUi(this);
32 addConfig(m_settings.get(), this);
33 }
34
~KCMQtQuickSettingsModule()35 KCMQtQuickSettingsModule::~KCMQtQuickSettingsModule()
36 {
37 }
38
39 #include "kcmqtquicksettings.moc"
40