appletAdded signal

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=734727
This commit is contained in:
Aaron J. Seigo 2007-11-09 18:47:35 +00:00
parent 0febb9ad15
commit bcf898ca7b
2 changed files with 7 additions and 0 deletions

View File

@ -357,6 +357,7 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui
this, SLOT(appletDestroyed(QObject*))); this, SLOT(appletDestroyed(QObject*)));
Phase::self()->animateItem(applet, Phase::Appear); Phase::self()->animateItem(applet, Phase::Appear);
emit appletAdded(applet);
return applet; return applet;
} }

View File

@ -199,6 +199,12 @@ class PLASMA_EXPORT Containment : public Applet
*/ */
QSizeF contentSizeHint() const; 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: public Q_SLOTS:
/** /**
* Informs the Corona as to what position it is in. This is informational * Informs the Corona as to what position it is in. This is informational