blob: 1920cd904cec99a6a5b348346905ff3dff6e8362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* SPDX-FileCopyrightText: 2009 Shaun Reich <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "trashsettingspage.h"
#include <KCModuleProxy>
#include <KPluginMetaData>
#include <QFormLayout>
TrashSettingsPage::TrashSettingsPage(QWidget *parent)
: SettingsPageBase(parent)
{
QFormLayout *topLayout = new QFormLayout(this);
m_proxy = new KCModuleProxy(KPluginMetaData(QStringLiteral("kcm_trash")));
topLayout->addRow(m_proxy);
loadSettings();
connect(m_proxy, &KCModuleProxy::changed, this, &TrashSettingsPage::changed);
}
TrashSettingsPage::~TrashSettingsPage()
{
}
void TrashSettingsPage::applySettings()
{
m_proxy->save();
}
void TrashSettingsPage::restoreDefaults()
{
m_proxy->defaults();
}
void TrashSettingsPage::loadSettings()
{
m_proxy->load();
}
#include "moc_trashsettingspage.cpp"
|