Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
9a0552d5
Commit
9a0552d5
authored
Dec 11, 2020
by
Chau Duong
Committed by
Elvis Angelaccio
Dec 28, 2020
Browse files
Remove context menu settings KCM
parent
a512176b
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
9a0552d5
...
...
@@ -371,13 +371,6 @@ set(kcm_dolphinnavigation_PART_SRCS
settings/navigation/navigationsettingspage.cpp
settings/settingspagebase.cpp
)
set
(
kcm_dolphincontextmenu_PART_SRCS
settings/kcm/kcmdolphincontextmenu.cpp
settings/contextmenu/contextmenusettingspage.cpp
settings/settingspagebase.cpp
settings/serviceitemdelegate.cpp
settings/servicemodel.cpp
)
set
(
kcm_dolphingeneral_PART_SRCS
settings/kcm/kcmdolphingeneral.cpp
settings/general/behaviorsettingspage.cpp
...
...
@@ -400,11 +393,6 @@ kconfig_add_kcfg_files(kcm_dolphinviewmodes_PART_SRCS
kconfig_add_kcfg_files
(
kcm_dolphinnavigation_PART_SRCS
settings/dolphin_generalsettings.kcfgc
)
kconfig_add_kcfg_files
(
kcm_dolphincontextmenu_PART_SRCS
settings/dolphin_generalsettings.kcfgc
settings/dolphin_contextmenusettings.kcfgc
settings/dolphin_versioncontrolsettings.kcfgc
)
kconfig_add_kcfg_files
(
kcm_dolphingeneral_PART_SRCS
settings/dolphin_generalsettings.kcfgc
)
...
...
@@ -413,23 +401,19 @@ if(NOT WIN32)
# The settings are still accessible from the hamburger menu
add_library
(
kcm_dolphinviewmodes MODULE
${
kcm_dolphinviewmodes_PART_SRCS
}
)
add_library
(
kcm_dolphinnavigation MODULE
${
kcm_dolphinnavigation_PART_SRCS
}
)
add_library
(
kcm_dolphincontextmenu MODULE
${
kcm_dolphincontextmenu_PART_SRCS
}
)
add_library
(
kcm_dolphingeneral MODULE
${
kcm_dolphingeneral_PART_SRCS
}
)
target_link_libraries
(
kcm_dolphinviewmodes dolphinprivate
)
target_link_libraries
(
kcm_dolphinnavigation dolphinprivate
)
target_link_libraries
(
kcm_dolphincontextmenu dolphinprivate
)
target_link_libraries
(
kcm_dolphingeneral dolphinprivate
)
install
(
FILES org.kde.dolphin.appdata.xml DESTINATION
${
KDE_INSTALL_METAINFODIR
}
)
install
(
FILES settings/kcm/kcmdolphinviewmodes.desktop DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
install
(
FILES settings/kcm/kcmdolphinnavigation.desktop DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
install
(
FILES settings/kcm/kcmdolphincontextmenu.desktop DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
install
(
FILES settings/kcm/kcmdolphingeneral.desktop DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
install
(
TARGETS kcm_dolphinviewmodes DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
install
(
TARGETS kcm_dolphinnavigation DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
install
(
TARGETS kcm_dolphincontextmenu DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
install
(
TARGETS kcm_dolphingeneral DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
endif
()
...
...
src/settings/kcm/kcmdolphincontextmenu.cpp
deleted
100644 → 0
View file @
a512176b
/*
* SPDX-FileCopyrightText: 2009 Peter Penz <peter.penz19@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "kcmdolphincontextmenu.h"
#include "settings/contextmenu/contextmenusettingspage.h"
#include <kconfigwidgets_version.h>
#include <KPluginFactory>
#include <KPluginLoader>
#include <QVBoxLayout>
K_PLUGIN_FACTORY
(
KCMDolphinContextMenuConfigFactory
,
registerPlugin
<
DolphinContextMenuConfigModule
>
(
QStringLiteral
(
"dolphincontextmenu"
));)
DolphinContextMenuConfigModule
::
DolphinContextMenuConfigModule
(
QWidget
*
parent
,
const
QVariantList
&
args
)
:
KCModule
(
parent
,
args
),
m_contextMenu
(
nullptr
)
{
setButtons
(
KCModule
::
Default
|
KCModule
::
Help
);
QVBoxLayout
*
topLayout
=
new
QVBoxLayout
(
this
);
topLayout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
m_contextMenu
=
new
ContextMenuSettingsPage
(
this
);
connect
(
m_contextMenu
,
&
ContextMenuSettingsPage
::
changed
,
this
,
&
DolphinContextMenuConfigModule
::
markAsChanged
);
topLayout
->
addWidget
(
m_contextMenu
,
0
,
{});
}
DolphinContextMenuConfigModule
::~
DolphinContextMenuConfigModule
()
{
}
void
DolphinContextMenuConfigModule
::
save
()
{
m_contextMenu
->
applySettings
();
}
void
DolphinContextMenuConfigModule
::
defaults
()
{
m_contextMenu
->
restoreDefaults
();
}
#include "kcmdolphincontextmenu.moc"
src/settings/kcm/kcmdolphincontextmenu.desktop
deleted
100644 → 0
View file @
a512176b
Name=Dolphin Context Menu
[Desktop Entry]
Icon=application-menu
Type=Service
X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_dolphincontextmenu
X-KDE-PluginKeyword=dolphincontextmenu
X-DocPath=dolphin/index.html#preferences-dialog-services
Name=Dolphin Context Menu
X-KDE-Keywords=file manager
X-KDE-Keywords[ar]=مدير ملفّات ملفات الملفّات الملفات
X-KDE-Keywords[ast]=xestor de ficheros
X-KDE-Keywords[az]=fayl meneceri
X-KDE-Keywords[ca]=gestor de fitxers
X-KDE-Keywords[ca@valencia]=gestor de fitxers
X-KDE-Keywords[cs]=správce souborů
X-KDE-Keywords[da]=filhåndtering
X-KDE-Keywords[de]=Dateiverwaltung
X-KDE-Keywords[el]=διαχειριστής αρχείων
X-KDE-Keywords[en_GB]=file manager
X-KDE-Keywords[es]=gestor de archivos
X-KDE-Keywords[et]=failihaldur
X-KDE-Keywords[eu]=Fitxategi-kudeatzailea
X-KDE-Keywords[fi]=tiedostonhallinta
X-KDE-Keywords[fr]=gestionnaire de fichiers
X-KDE-Keywords[gl]=xestor de ficheiros
X-KDE-Keywords[he]=מנהל קבצים
X-KDE-Keywords[hu]=fájlkezelő
X-KDE-Keywords[ia]=gerente de file
X-KDE-Keywords[id]=pengelola file
X-KDE-Keywords[it]=gestore dei file
X-KDE-Keywords[ja]=ファイルマネージャ
X-KDE-Keywords[ko]=파일 관리자
X-KDE-Keywords[lt]=failų tvarkytuvė
X-KDE-Keywords[lv]=datņu pārvaldnieks
X-KDE-Keywords[ml]=ഫയൽ മാനേജർ
X-KDE-Keywords[nb]=filbehandler
X-KDE-Keywords[nl]=bestandsbeheerder
X-KDE-Keywords[nn]=filhandsamar
X-KDE-Keywords[pa]=ਫਾਇਲ ਮੈਨੇਜਰ
X-KDE-Keywords[pl]=zarządzanie plikami
X-KDE-Keywords[pt]=gestor de ficheiros
X-KDE-Keywords[pt_BR]=gerenciador de arquivos
X-KDE-Keywords[ro]=gestionar de fișiere
X-KDE-Keywords[ru]=диспетчер файлов
X-KDE-Keywords[sk]=správca súborov
X-KDE-Keywords[sl]=upravljalnik datotek
X-KDE-Keywords[sr]=file manager,менаџер фајлова
X-KDE-Keywords[sr@ijekavian]=file manager,менаџер фајлова
X-KDE-Keywords[sr@ijekavianlatin]=file manager,menadžer fajlova
X-KDE-Keywords[sr@latin]=file manager,menadžer fajlova
X-KDE-Keywords[sv]=filhanterare
X-KDE-Keywords[tr]=dosya yöneticisi
X-KDE-Keywords[uk]=менеджер,керування,файл,файли
X-KDE-Keywords[vi]=file manager,trình quản lí tệp
X-KDE-Keywords[x-test]=xxfile managerxx
X-KDE-Keywords[zh_CN]=文件管理器
X-KDE-Keywords[zh_TW]=檔案管理員
src/settings/kcm/kcmdolphincontextmenu.h
deleted
100644 → 0
View file @
a512176b
/*
* SPDX-FileCopyrightText: 2009 Peter Penz <peter.penz19@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KCMDOLPHINCONTEXTMENU_H
#define KCMDOLPHINCONTEXTMENU_H
#include <KCModule>
class
ContextMenuSettingsPage
;
/**
* @brief Allow to configure the Dolphin context menu.
*/
class
DolphinContextMenuConfigModule
:
public
KCModule
{
Q_OBJECT
public:
DolphinContextMenuConfigModule
(
QWidget
*
parent
,
const
QVariantList
&
args
);
~
DolphinContextMenuConfigModule
()
override
;
void
save
()
override
;
void
defaults
()
override
;
private:
ContextMenuSettingsPage
*
m_contextMenu
;
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment