From bcf898ca7b58744047ace96a2cde66efb0922be6 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 9 Nov 2007 18:47:35 +0000 Subject: [PATCH] appletAdded signal svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734727 --- containment.cpp | 1 + containment.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/containment.cpp b/containment.cpp index bff3c4e82..934ba9df4 100644 --- a/containment.cpp +++ b/containment.cpp @@ -357,6 +357,7 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui this, SLOT(appletDestroyed(QObject*))); Phase::self()->animateItem(applet, Phase::Appear); + emit appletAdded(applet); return applet; } diff --git a/containment.h b/containment.h index d094bbc39..87353dc3f 100644 --- a/containment.h +++ b/containment.h @@ -199,6 +199,12 @@ class PLASMA_EXPORT Containment : public Applet */ QSizeF contentSizeHint() const; + Q_SIGNALS: + /** + * This signal is emitted when a new applet is created by the containment + */ + void appletAdded(Plasma::Applet* applet); + public Q_SLOTS: /** * Informs the Corona as to what position it is in. This is informational