From 28d88ef232728767185bea57b40f3e8e3597825d Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 10 Dec 2009 21:07:28 +0000 Subject: [PATCH] must use Plasma::Type and not only Type in the signals!!! fixed the immutabilityChanged signal, the messageButtonPresses cannot be changed 'cause is there from 4.3, so added a note in the apidox about a workaround svn path=/trunk/KDE/kdelibs/; revision=1061166 --- applet.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/applet.h b/applet.h index 9f7858d50..4b6a5c255 100644 --- a/applet.h +++ b/applet.h @@ -734,6 +734,12 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget /** * Emitted when the user clicked on a button of the message overlay + * + * Since the signal passes the type MessageButton without specifying + * the Plasma namespace and since automoc is pedantic if you want to + * use this signal outside the Plasma namespace you have to declare + * "typedef Plasma::MessageButton MessageButton" and use the typedef + * in your slot and in the connect. * @see showMessage * @see Plasma::MessageButton * @since 4.3 @@ -760,7 +766,7 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget * Emitted when the immutability changes * @since 4.4 */ - void immutabilityChanged(ImmutabilityType immutable); + void immutabilityChanged(Plasma::ImmutabilityType immutable); public Q_SLOTS: /**