]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/trash/trashsettingspage.cpp
Merge branch 'release/21.12'
[dolphin.git] / src / settings / trash / trashsettingspage.cpp
1 /*
2 * SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #include "trashsettingspage.h"
8
9 #include <KCModuleProxy>
10
11 #include <QFormLayout>
12
13 TrashSettingsPage::TrashSettingsPage(QWidget* parent) :
14 SettingsPageBase(parent)
15 {
16 QFormLayout* topLayout = new QFormLayout(this);
17
18 m_proxy = new KCModuleProxy(KPluginMetaData(QStringLiteral("kcm_trash")));
19 topLayout->addRow(m_proxy);
20
21 loadSettings();
22
23 connect(m_proxy, &KCModuleProxy::changed, this, &TrashSettingsPage::changed);
24 }
25
26 TrashSettingsPage::~TrashSettingsPage()
27 {
28 }
29
30 void TrashSettingsPage::applySettings()
31 {
32 m_proxy->save();
33 }
34
35 void TrashSettingsPage::restoreDefaults()
36 {
37 m_proxy->defaults();
38 }
39
40 void TrashSettingsPage::loadSettings()
41 {
42 m_proxy->load();
43 }
44