From f82d764ad78bb1f9c3c260442ce4ab448563c1e5 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Tue, 27 Feb 2018 23:24:26 +0100 Subject: [PATCH] API dox: Use @deprecated tag for deprecation comment --- src/plasma/applet.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plasma/applet.h b/src/plasma/applet.h index 31f42298c..f3ad0a20b 100644 --- a/src/plasma/applet.h +++ b/src/plasma/applet.h @@ -318,8 +318,6 @@ 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 * If you instance a plasmoid with this deprecated API, the * automated default setup scripts won't be executed for that plasmoid * @@ -328,6 +326,9 @@ public: * assigned automatically. * @return a pointer to the loaded applet, or 0 on load failure * @since 4.3 + * + * @deprecated use Containment::createApplet() instead, you are not + * supposed to have applets without containments **/ PLASMA_DEPRECATED static Applet *loadPlasmoid(const QString &path, uint appletId = 0);