From f30c84275f2e7f168c32a3479c59934a397f28b3 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 31 Mar 2021 20:47:34 +0200 Subject: [PATCH] Deprecate AppletScript::description() It's based on the deprecated KPluginInfo --- src/plasma/scripting/appletscript.cpp | 2 ++ src/plasma/scripting/appletscript.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/plasma/scripting/appletscript.cpp b/src/plasma/scripting/appletscript.cpp index ba49792b6..3af23bca4 100644 --- a/src/plasma/scripting/appletscript.cpp +++ b/src/plasma/scripting/appletscript.cpp @@ -97,11 +97,13 @@ Package AppletScript::package() const return d->applet->package(); } +#if PLASMA_BUILD_DEPRECATED_SINCE(5, 81) KPluginInfo AppletScript::description() const { Q_ASSERT(d->applet); return d->applet->pluginInfo(); } +#endif Plasma::Types::ContainmentType AppletScript::containmentType() const { diff --git a/src/plasma/scripting/appletscript.h b/src/plasma/scripting/appletscript.h index c78d40b1f..a18dcbb96 100644 --- a/src/plasma/scripting/appletscript.h +++ b/src/plasma/scripting/appletscript.h @@ -142,10 +142,14 @@ protected: */ Package package() const override; +#if PLASMA_ENABLE_DEPRECATED_SINCE(5, 81) /** * @return the KPluginInfo associated with this plasmoid + * @deprecated since 5.81, use applet()->pluginMetaData() instead. */ + PLASMA_DEPRECATED_VERSION(5, 81, "Use applet()->pluginMetaData() instead.") KPluginInfo description() const; +#endif private: friend class Applet;