Commit 7e81e30f authored by Nicolas Fella's avatar Nicolas Fella Committed by Harald Sitter
Browse files

Port properties plugin to JSON metadata

This enables finding it via KPluginLoader, which is the recommended way.
parent 4fc61188
......@@ -15,6 +15,8 @@ qt5_add_resources(sambausershareplugin_PART_SRCS qml/qml.qrc)
add_library(sambausershareplugin MODULE ${sambausershareplugin_PART_SRCS})
kcoreaddons_desktop_to_json(sambausershareplugin sambausershareplugin.desktop)
target_link_libraries(sambausershareplugin
KF5::CoreAddons
KF5::I18n
......@@ -30,8 +32,7 @@ if(SAMBA_INSTALL)
target_link_libraries(sambausershareplugin PK::packagekitqt5)
endif()
install(TARGETS sambausershareplugin DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES sambausershareplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS sambausershareplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/propertiesdialog)
# kauth
......
......@@ -39,7 +39,7 @@
#include "sambainstaller.h"
#endif
K_PLUGIN_FACTORY(SambaUserSharePluginFactory, registerPlugin<SambaUserSharePlugin>();)
K_PLUGIN_CLASS_WITH_JSON(SambaUserSharePlugin, "sambausershareplugin.json")
class ShareContext : public QObject
{
......
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