Commit 744c7178 authored by Nicolas Fella's avatar Nicolas Fella Committed by Alexander Lohnau
Browse files

Modernize KCM code

Convert metadata to JSON

Use new install location

Generate desktop file
parent 415069dc
......@@ -13,5 +13,6 @@ Dependencies:
'frameworks/knotifications': '@latest'
'frameworks/kpackage': '@latest'
'frameworks/plasma-framework': '@latest'
'frameworks/kcmutils': '@latest'
Options:
require-passing-tests-on: [ 'Linux', 'FreeBSD']
......@@ -46,6 +46,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Notifications
I18n
Plasma
KCMUtils
)
find_package(Canberra REQUIRED)
......
add_library(kcm_pulseaudio MODULE module.cpp)
kcoreaddons_add_plugin(kcm_pulseaudio SOURCES module.cpp INSTALL_NAMESPACE "plasma/kcms/systemsettings")
target_link_libraries(kcm_pulseaudio
Qt::Quick
......@@ -7,9 +7,6 @@ target_link_libraries(kcm_pulseaudio
KF5::QuickAddons
)
kcoreaddons_desktop_to_json(kcm_pulseaudio "package/metadata.desktop")
install(FILES package/metadata.desktop RENAME kcm_pulseaudio.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
install(TARGETS kcm_pulseaudio DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
kcmutils_generate_desktop_file(kcm_pulseaudio)
kpackage_install_package(package kcm_pulseaudio kcms)
This diff is collapsed.
......@@ -8,7 +8,7 @@
#include <KPluginFactory>
K_PLUGIN_CLASS_WITH_JSON(KCMPulseAudio, "metadata.json")
K_PLUGIN_CLASS_WITH_JSON(KCMPulseAudio, "kcm_pulseaudio.json")
KCMPulseAudio::KCMPulseAudio(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, metaData, args)
......
This diff is collapsed.
Supports Markdown
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