mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-23 15:45:53 +00:00
63 lines
1.1 KiB
C++
63 lines
1.1 KiB
C++
/*
|
|
SPDX-FileCopyrightText: 2018 Roman Gilg <subdiff@gmail.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "configcontainer.h"
|
|
#include "configplugin.h"
|
|
|
|
#include "inputbackend.h"
|
|
|
|
#include <KWindowSystem/kwindowsystem.h>
|
|
|
|
extern "C" {
|
|
Q_DECL_EXPORT void kcminit()
|
|
{
|
|
InputBackend *backend = InputBackend::implementation();
|
|
backend->kcmInit();
|
|
delete backend;
|
|
}
|
|
}
|
|
|
|
ConfigContainer::ConfigContainer(QWidget *parent, const QVariantList &args)
|
|
: KCModule(parent, args)
|
|
{
|
|
m_plugin = ConfigPlugin::implementation(this);
|
|
}
|
|
|
|
QSize ConfigContainer::minimumSizeHint() const
|
|
{
|
|
return m_plugin->minimumSizeHint();
|
|
}
|
|
QSize ConfigContainer::sizeHint() const
|
|
{
|
|
return m_plugin->sizeHint();
|
|
}
|
|
void ConfigContainer::resizeEvent(QResizeEvent *event)
|
|
{
|
|
Q_UNUSED(event);
|
|
m_plugin->resize(this->size());
|
|
}
|
|
|
|
void ConfigContainer::load()
|
|
{
|
|
m_plugin->load();
|
|
}
|
|
|
|
void ConfigContainer::save()
|
|
{
|
|
m_plugin->save();
|
|
}
|
|
|
|
void ConfigContainer::defaults()
|
|
{
|
|
m_plugin->defaults();
|
|
}
|
|
|
|
void ConfigContainer::hideEvent(QHideEvent *e)
|
|
{
|
|
m_plugin->hideEvent(e);
|
|
KCModule::hideEvent(e);
|
|
}
|