add an icon() accessor
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691201
This commit is contained in:
parent
201afe2033
commit
b8a9f72008
@ -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()) {
|
||||||
|
5
applet.h
5
applet.h
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user