export plugin name
not super nice but the simplest way to avoid code duplication in the image plugin
This commit is contained in:
parent
c9ac5ebefb
commit
aaf7fa328d
@ -78,6 +78,11 @@ Plasma::Package WallpaperInterface::package() const
|
|||||||
return m_pkg;
|
return m_pkg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString WallpaperInterface::pluginName() const
|
||||||
|
{
|
||||||
|
return m_wallpaperPlugin;
|
||||||
|
}
|
||||||
|
|
||||||
KDeclarative::ConfigPropertyMap *WallpaperInterface::configuration() const
|
KDeclarative::ConfigPropertyMap *WallpaperInterface::configuration() const
|
||||||
{
|
{
|
||||||
return m_configuration;
|
return m_configuration;
|
||||||
|
@ -44,7 +44,7 @@ class WallpaperInterface : public QQuickItem
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
//Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged)
|
Q_PROPERTY(QString pluginName READ pluginName NOTIFY packageChanged)
|
||||||
Q_PROPERTY(KDeclarative::ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
|
Q_PROPERTY(KDeclarative::ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -62,6 +62,8 @@ public:
|
|||||||
|
|
||||||
Plasma::Package package() const;
|
Plasma::Package package() const;
|
||||||
|
|
||||||
|
QString pluginName() const;
|
||||||
|
|
||||||
KDeclarative::ConfigPropertyMap *configuration() const;
|
KDeclarative::ConfigPropertyMap *configuration() const;
|
||||||
|
|
||||||
Plasma::ConfigLoader *configScheme();
|
Plasma::ConfigLoader *configScheme();
|
||||||
|
Loading…
Reference in New Issue
Block a user