appletRemoved signal to create symetry with appletAdded. had two people ask about this already.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=747104
This commit is contained in:
Aaron J. Seigo 2007-12-11 02:59:02 +00:00
parent ce8d1ede68
commit 616675be80
2 changed files with 6 additions and 0 deletions

View File

@ -455,6 +455,7 @@ void Containment::appletDestroyed(QObject* object)
// so this unsafe looking code is actually just fine.
Applet* applet = static_cast<Plasma::Applet*>(object);
d->applets.removeAll(applet);
emit appletRemoved(applet);
}
void Containment::appletAnimationComplete(QGraphicsItem *item, Plasma::Phase::Animation anim)

View File

@ -233,6 +233,11 @@ class PLASMA_EXPORT Containment : public Applet
*/
void appletAdded(Plasma::Applet* applet);
/**
* This signal is emitted when an applet is destroyed
*/
void appletRemoved(Plasma::Applet* applet);
/**
* This signal indicates, that a application launch was triggered
*/