add an icon() accessor

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691201
This commit is contained in:
Aaron J. Seigo 2007-07-23 06:12:38 +00:00
parent 201afe2033
commit b8a9f72008
2 changed files with 14 additions and 0 deletions

View File

@ -220,6 +220,15 @@ QString Applet::name() const
return d->appletDescription.name(); return d->appletDescription.name();
} }
QString Applet::icon() const
{
if (!d->appletDescription.isValid()) {
return QString();
}
return d->appletDescription.icon();
}
QString Applet::category() const QString Applet::category() const
{ {
if (!d->appletDescription.isValid()) { if (!d->appletDescription.isValid()) {

View File

@ -265,6 +265,11 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
**/ **/
QString name() const; QString name() const;
/**
* Returns the icon related to this applet
**/
QString icon() const;
/** /**
* Returns the category the applet is in, as specified in the * Returns the category the applet is in, as specified in the
* .desktop file. * .desktop file.