]> cloud.milkyroute.net Git - dolphin.git/blob - src/settings/trash/trashsettingspage.cpp
GIT_SILENT Update Appstream for new release
[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 #include <KPluginMetaData>
11
12 #include <QFormLayout>
13
14 TrashSettingsPage::TrashSettingsPage(QWidget *parent)
15 : SettingsPageBase(parent)
16 {
17 QFormLayout *topLayout = new QFormLayout(this);
18
19 m_proxy = new KCModuleProxy(KPluginMetaData(QStringLiteral("kcm_trash")));
20 topLayout->addRow(m_proxy);
21
22 loadSettings();
23
24 connect(m_proxy, &KCModuleProxy::changed, this, &TrashSettingsPage::changed);
25 }
26
27 TrashSettingsPage::~TrashSettingsPage()
28 {
29 }
30
31 void TrashSettingsPage::applySettings()
32 {
33 m_proxy->save();
34 }
35
36 void TrashSettingsPage::restoreDefaults()
37 {
38 m_proxy->defaults();
39 }
40
41 void TrashSettingsPage::loadSettings()
42 {
43 m_proxy->load();
44 }