mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
|
/*
|
||
|
* SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
*/
|
||
|
|
||
|
#include "breezestyleconfigmodule.h"
|
||
|
|
||
|
#include <KPluginFactory>
|
||
|
|
||
|
K_PLUGIN_CLASS_WITH_JSON(Breeze::ConfigurationModule, "breezestyleconfig.json")
|
||
|
|
||
|
#include "breezestyleconfigmodule.moc"
|
||
|
|
||
|
namespace Breeze
|
||
|
{
|
||
|
//_______________________________________________________________________
|
||
|
ConfigurationModule::ConfigurationModule(QWidget *parent, const QVariantList &args)
|
||
|
: KCModule(parent, args)
|
||
|
{
|
||
|
setLayout(new QVBoxLayout(this));
|
||
|
layout()->addWidget(m_config = new StyleConfig(this));
|
||
|
connect(m_config, static_cast<void (StyleConfig::*)(bool)>(&StyleConfig::changed), this, static_cast<void (KCModule::*)(bool)>(&KCModule::changed));
|
||
|
}
|
||
|
|
||
|
//_______________________________________________________________________
|
||
|
void ConfigurationModule::defaults()
|
||
|
{
|
||
|
m_config->defaults();
|
||
|
KCModule::defaults();
|
||
|
}
|
||
|
|
||
|
//_______________________________________________________________________
|
||
|
void ConfigurationModule::load()
|
||
|
{
|
||
|
m_config->load();
|
||
|
KCModule::load();
|
||
|
}
|
||
|
|
||
|
//_______________________________________________________________________
|
||
|
void ConfigurationModule::save()
|
||
|
{
|
||
|
m_config->save();
|
||
|
KCModule::save();
|
||
|
}
|
||
|
|
||
|
}
|