Make wallpaper capable of setting particular Image
http://svn.reviewboard.kde.org/r/6375/ svn path=/trunk/KDE/kdelibs/; revision=1216005
This commit is contained in:
parent
becf979cf4
commit
30b570357f
@ -132,6 +132,16 @@ Wallpaper::~Wallpaper()
|
|||||||
delete d;
|
delete d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Wallpaper::addUrls(const KUrl::List &urls)
|
||||||
|
{
|
||||||
|
Q_UNUSED(urls);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Wallpaper::setUrls(const KUrl::List &urls)
|
||||||
|
{
|
||||||
|
QMetaObject::invokeMethod(this, "addUrls", Q_ARG(KUrl::List,urls));
|
||||||
|
}
|
||||||
|
|
||||||
KPluginInfo::List Wallpaper::listWallpaperInfo(const QString &formFactor)
|
KPluginInfo::List Wallpaper::listWallpaperInfo(const QString &formFactor)
|
||||||
{
|
{
|
||||||
QString constraint;
|
QString constraint;
|
||||||
|
17
wallpaper.h
17
wallpaper.h
@ -85,6 +85,14 @@ class PLASMA_EXPORT Wallpaper : public QObject
|
|||||||
|
|
||||||
~Wallpaper();
|
~Wallpaper();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the urls for the wallpaper
|
||||||
|
* @param urls Urls of the selected images
|
||||||
|
* @since 4.7
|
||||||
|
*/
|
||||||
|
void setUrls(const KUrl::List &urls);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of all known wallpapers.
|
* Returns a list of all known wallpapers.
|
||||||
*
|
*
|
||||||
@ -395,6 +403,15 @@ class PLASMA_EXPORT Wallpaper : public QObject
|
|||||||
*/
|
*/
|
||||||
void renderHintsChanged();
|
void renderHintsChanged();
|
||||||
|
|
||||||
|
protected Q_SLOTS:
|
||||||
|
/**
|
||||||
|
* This method is invoked by setUrls(KUrl::List)
|
||||||
|
* Can be Overriden by Plugins which want to support setting Image URLs
|
||||||
|
* Will be changed to virtual method in libplasma2/KDE5
|
||||||
|
* @since 4.7
|
||||||
|
*/
|
||||||
|
void addUrls(const KUrl::List &urls);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* This constructor is to be used with the plugin loading systems
|
* This constructor is to be used with the plugin loading systems
|
||||||
|
Loading…
x
Reference in New Issue
Block a user