From 6841956ea6ef83ee21a7f005bdc2250343743d6e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 12 Jan 2016 13:28:00 +0100 Subject: [PATCH] deprecate Applet::loadPlasmoid() Deprecated: use Containment::createApplet instead, you are not supposed to have applets without containments Change-Id: I5e73335523687969918a71e56eaa3124d779ee74 --- src/plasma/applet.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plasma/applet.h b/src/plasma/applet.h index 7a42bb116..67084039c 100644 --- a/src/plasma/applet.h +++ b/src/plasma/applet.h @@ -288,6 +288,8 @@ public: * Returns a pointer to the applet if successful. * The caller takes responsibility for the applet, including * deleting it when no longer needed. + * Deprecated: use Containment::createApplet instead, you are not + * supposed to have applets without containments * * @param path the path to the package * @param appletId unique ID to assign the applet, or zero to have one @@ -295,7 +297,7 @@ public: * @return a pointer to the loaded applet, or 0 on load failure * @since 4.3 **/ - static Applet *loadPlasmoid(const QString &path, uint appletId = 0); + PLASMA_DEPRECATED static Applet *loadPlasmoid(const QString &path, uint appletId = 0); /** * @returns The icon name related to this applet