Verified Commit 17446199 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

kcm_konq: Install plugin in konqueror_kcms namespace and embed json metadata

parent 1eb59564
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 )
......@@ -26,7 +26,7 @@
#include <QStandardPaths>
#include <KSharedConfig>
K_PLUGIN_FACTORY(KBehaviourOptionsFactory, registerPlugin<KBehaviourOptions>();)
K_PLUGIN_CLASS_WITH_JSON(KBehaviourOptions, "filebehavior.json")
KBehaviourOptions::KBehaviourOptions(QWidget *parent, const QVariantList &)
: KCModule(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment