grant access to the associated applet

svn path=/trunk/KDE/kdelibs/; revision=1018586
This commit is contained in:
Aaron J. Seigo 2009-09-01 21:59:04 +00:00
parent bf8eb6de86
commit a3db44d5f4
2 changed files with 11 additions and 0 deletions

View File

@ -288,6 +288,11 @@ QList<ExtenderGroup*> Extender::groups() const
return result;
}
Applet *Extender::applet() const
{
return d->applet;
}
void Extender::saveState()
{
foreach (ExtenderItem *item, attachedItems()) {

View File

@ -181,6 +181,12 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget
*/
QList<ExtenderGroup*> groups() const;
/**
* @returns the Applet this Extender is associated with
* @since 4.4
*/
Applet *applet() const;
protected:
/**
* Get's called after an item has been added to this extender. The bookkeeping has already