Add JSON metadata to plugin binary

parent b8a23167
......@@ -29,6 +29,7 @@ set(svgpart_SRCS
)
add_library(svgpart MODULE ${svgpart_SRCS})
kcoreaddons_desktop_to_json(svgpart svgpart.desktop)
target_link_libraries(svgpart Qt5::Widgets Qt5::Svg KF5::CoreAddons KF5::Parts)
......
......@@ -48,7 +48,8 @@ static KAboutData createAboutData()
}
//Factory Code
K_PLUGIN_FACTORY(SvgPartFactory, registerPlugin<SvgPart>();)
K_PLUGIN_FACTORY_WITH_JSON(SvgPartFactory, "svgpart.json",
registerPlugin<SvgPart>();)
SvgPart::SvgPart(QWidget* parentWidget, QObject* parent, const QVariantList&)
......
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