expose the plugin name
This commit is contained in:
parent
7a6008d58a
commit
c4e6f06f42
@ -148,6 +148,11 @@ uint AppletInterface::id() const
|
||||
return applet()->id();
|
||||
}
|
||||
|
||||
QString AppletInterface::pluginName() const
|
||||
{
|
||||
return applet()->pluginInfo().pluginName();
|
||||
}
|
||||
|
||||
QString AppletInterface::icon() const
|
||||
{
|
||||
return applet()->icon();
|
||||
|
@ -62,6 +62,11 @@ class AppletInterface : public PlasmaQuick::AppletQuickItem
|
||||
*/
|
||||
Q_PROPERTY(int apiVersion READ apiVersion CONSTANT)
|
||||
|
||||
/**
|
||||
* Plugin name of the plasmoid
|
||||
*/
|
||||
Q_PROPERTY(QString pluginName READ pluginName CONSTANT)
|
||||
|
||||
/**
|
||||
* User friendly title for the plasmoid: it's the localized applet name by default
|
||||
*/
|
||||
@ -223,6 +228,8 @@ public:
|
||||
}
|
||||
|
||||
//PROPERTY ACCESSORS-------------------------------------------------------------------
|
||||
QString pluginName() const;
|
||||
|
||||
QString icon() const;
|
||||
void setIcon(const QString &icon);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user