Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 066f7443 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new macro which will be avaailable in 5.44

parent 4044c3b5
......@@ -25,10 +25,13 @@
#include <kpluginfactory.h>
using namespace MessageViewer;
K_PLUGIN_FACTORY_WITH_JSON(MessageViewerDefaultGrantleeHeaderStylePluginFactory,
"messageviewer_defaultgrantleeheaderstyleplugin.json",
registerPlugin<DefaultGrantleeHeaderStylePlugin>();
)
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 44, 0)
#define K_PLUGIN_CLASS_WITH_JSON(classname, json) K_PLUGIN_FACTORY_WITH_JSON(classname ## Factory, json, registerPlugin<classname >();)
#endif
K_PLUGIN_CLASS_WITH_JSON(DefaultGrantleeHeaderStylePlugin,
"messageviewer_defaultgrantleeheaderstyleplugin.json")
DefaultGrantleeHeaderStylePlugin::DefaultGrantleeHeaderStylePlugin(QObject *parent, const QList<QVariant> &)
: MessageViewer::HeaderStylePlugin(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