Commit caefa412 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Use K_PLUGIN_FACTORY_WITH_JSON and remove K_EXPORT_PLUGIN

K_EXPORT_PLUGIN has been depreciated; K_PLUGIN_FACTORY() worked but
let's try to use _WITH_JSON()
parent 157b3bdd
......@@ -207,6 +207,7 @@ set(konsolepart_PART_SRCS Part.cpp
kconfig_add_kcfg_files(konsolepart_PART_SRCS settings/KonsoleSettings.kcfgc)
add_library(konsolepart MODULE ${konsolepart_PART_SRCS})
generate_export_header(konsolepart BASE_NAME konsole)
kcoreaddons_desktop_to_json(konsolepart ../desktop/konsolepart.desktop)
set_target_properties(konsolepart PROPERTIES DEFINE_SYMBOL KONSOLE_PART)
target_link_libraries(konsolepart KF5::Parts KF5::XmlGui konsoleprivate)
install(TARGETS konsolepart DESTINATION ${KDE_INSTALL_PLUGINDIR})
......
......@@ -48,8 +48,9 @@
using namespace Konsole;
K_PLUGIN_FACTORY(KonsolePartFactory, registerPlugin<Konsole::Part>();)
K_EXPORT_PLUGIN(KonsolePartFactory("konsole"))
K_PLUGIN_FACTORY_WITH_JSON(KonsolePartFactory,
"konsolepart.json",
registerPlugin<Konsole::Part>();)
Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList &) :
KParts::ReadOnlyPart(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