Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
17446199
Verified
Commit
17446199
authored
Oct 10, 2021
by
Alexander Lohnau
💬
Browse files
kcm_konq: Install plugin in konqueror_kcms namespace and embed json metadata
parent
1eb59564
Changes
2
Hide whitespace changes
Inline
Side-by-side
settings/konq/CMakeLists.txt
View file @
17446199
add_definitions
(
-DTRANSLATION_DOMAIN=\"kcmkonq\"
)
set
(
kcm_konq_PART_SRCS
behaviour.cpp
)
add_library
(
kcm_konq MODULE
${
kcm_konq_PART_SRCS
}
)
kcoreaddons_add_plugin
(
kcm_konq SOURCES behaviour.cpp INSTALL_NAMESPACE konqueror_kcms
)
kcoreaddons_desktop_to_json
(
kcm_konq filebehavior.desktop
)
target_link_libraries
(
kcm_konq KF5::KCMUtils KF5::KIOCore KF5::I18n KF5::KIOWidgets Qt5::DBus
)
install
(
TARGETS kcm_konq DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
########### install files ###############
install
(
FILES
filebehavior.desktop
DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
install
(
FILES overlapping.png onlyone.png DESTINATION
${
KDE_INSTALL_DATADIR
}
/kcontrol/pics
)
settings/konq/behaviour.cpp
View file @
17446199
...
...
@@ -26,7 +26,7 @@
#include
<QStandardPaths>
#include
<KSharedConfig>
K_PLUGIN_
FACTORY
(
KBehaviourOptions
Factory
,
registerPlugin
<
KBehaviourOptions
>
();
)
K_PLUGIN_
CLASS_WITH_JSON
(
KBehaviourOptions
,
"filebehavior.json"
)
KBehaviourOptions
::
KBehaviourOptions
(
QWidget
*
parent
,
const
QVariantList
&
)
:
KCModule
(
parent
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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