export plugin name

not super nice but the simplest way to avoid code duplication in the image plugin
This commit is contained in:
Marco Martin 2014-02-20 12:33:31 +01:00
parent c9ac5ebefb
commit aaf7fa328d
2 changed files with 8 additions and 1 deletions

View File

@ -78,6 +78,11 @@ Plasma::Package WallpaperInterface::package() const
return m_pkg;
}
QString WallpaperInterface::pluginName() const
{
return m_wallpaperPlugin;
}
KDeclarative::ConfigPropertyMap *WallpaperInterface::configuration() const
{
return m_configuration;

View File

@ -44,7 +44,7 @@ class WallpaperInterface : public QQuickItem
{
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)
public:
@ -62,6 +62,8 @@ public:
Plasma::Package package() const;
QString pluginName() const;
KDeclarative::ConfigPropertyMap *configuration() const;
Plasma::ConfigLoader *configScheme();