diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -171,7 +171,7 @@ GROUP_BASE_NAME KF VERSION ${KF5_VERSION} DEPRECATED_BASE_VERSION 0 - DEPRECATION_VERSIONS 4.0 5.0 5.2 5.65 5.67 + DEPRECATION_VERSIONS 4.0 5.0 5.2 5.65 5.67 5.70 EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} ) diff --git a/src/lib/plugin/kpluginfactory.h b/src/lib/plugin/kpluginfactory.h --- a/src/lib/plugin/kpluginfactory.h +++ b/src/lib/plugin/kpluginfactory.h @@ -530,7 +530,14 @@ void registerPlugin(const QString &keyword, const QMetaObject *metaObject, CreateInstanceFunction instanceFunction); }; +// Deprecation wrapper macro added only for 5.70, while backward typedef added in 4.0 +#if KCOREADDONS_ENABLE_DEPRECATED_SINCE(5, 70) +/** + * Backward compatibility typedef for KPluginFactory + * @deprecated since 4.0, use KPluginFactory + */ typedef KPluginFactory KLibFactory; +#endif template inline T *KPluginFactory::create(QObject *parent, const QVariantList &args)