┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/kcm/kcmdolphinservices.cpp
diff options
context:
space:
mode:
authorDuong Do Minh Chau <[email protected]>2020-11-12 16:38:44 +0700
committerElvis Angelaccio <[email protected]>2020-12-28 20:18:31 +0000
commita512176b4bdbf0f0471a9b9089f4a936c14e2732 (patch)
tree51f1ecf98d29b9994af950d9ca2fb0085f29e337 /src/settings/kcm/kcmdolphinservices.cpp
parentb339ac1b5f22efb57619c738eb39268c3e00948d (diff)
Add options to hide some context menu entries
This commit add options to hide the following context menu entries: - Add to Places - Copy Location - Duplicate Here - Open in New Tab and Open in New Tabs - Open in New Window - Sort By - View Mode The Services settings page is renamed to Context Menu ShowCopyMoveMenu option is moved from GeneralSettings to ContextMenuSettings BUG: 314594
Diffstat (limited to 'src/settings/kcm/kcmdolphinservices.cpp')
-rw-r--r--src/settings/kcm/kcmdolphinservices.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/settings/kcm/kcmdolphinservices.cpp b/src/settings/kcm/kcmdolphinservices.cpp
deleted file mode 100644
index 583440d3e..000000000
--- a/src/settings/kcm/kcmdolphinservices.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * SPDX-FileCopyrightText: 2009 Peter Penz <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
- */
-
-#include "kcmdolphinservices.h"
-
-#include "settings/services/servicessettingspage.h"
-
-#include <kconfigwidgets_version.h>
-#include <KPluginFactory>
-
-#include <QVBoxLayout>
-
-K_PLUGIN_FACTORY(KCMDolphinServicesConfigFactory, registerPlugin<DolphinServicesConfigModule>(QStringLiteral("dolphinservices"));)
-
-DolphinServicesConfigModule::DolphinServicesConfigModule(QWidget* parent, const QVariantList& args) :
- KCModule(parent, args),
- m_services(nullptr)
-{
- setButtons(KCModule::Default | KCModule::Help);
-
- QVBoxLayout* topLayout = new QVBoxLayout(this);
- topLayout->setContentsMargins(0, 0, 0, 0);
-
- m_services = new ServicesSettingsPage(this);
- connect(m_services, &ServicesSettingsPage::changed, this, &DolphinServicesConfigModule::markAsChanged);
- topLayout->addWidget(m_services, 0, {});
-}
-
-DolphinServicesConfigModule::~DolphinServicesConfigModule()
-{
-}
-
-void DolphinServicesConfigModule::save()
-{
- m_services->applySettings();
-}
-
-void DolphinServicesConfigModule::defaults()
-{
- m_services->restoreDefaults();
-}
-
-#include "kcmdolphinservices.moc"