Deprecate AppletScript::description()
It's based on the deprecated KPluginInfo
This commit is contained in:
parent
a9ed527663
commit
f30c84275f
@ -97,11 +97,13 @@ Package AppletScript::package() const
|
|||||||
return d->applet->package();
|
return d->applet->package();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if PLASMA_BUILD_DEPRECATED_SINCE(5, 81)
|
||||||
KPluginInfo AppletScript::description() const
|
KPluginInfo AppletScript::description() const
|
||||||
{
|
{
|
||||||
Q_ASSERT(d->applet);
|
Q_ASSERT(d->applet);
|
||||||
return d->applet->pluginInfo();
|
return d->applet->pluginInfo();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Plasma::Types::ContainmentType AppletScript::containmentType() const
|
Plasma::Types::ContainmentType AppletScript::containmentType() const
|
||||||
{
|
{
|
||||||
|
@ -142,10 +142,14 @@ protected:
|
|||||||
*/
|
*/
|
||||||
Package package() const override;
|
Package package() const override;
|
||||||
|
|
||||||
|
#if PLASMA_ENABLE_DEPRECATED_SINCE(5, 81)
|
||||||
/**
|
/**
|
||||||
* @return the KPluginInfo associated with this plasmoid
|
* @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;
|
KPluginInfo description() const;
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class Applet;
|
friend class Applet;
|
||||||
|
Loading…
Reference in New Issue
Block a user