[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma
From: Sinny Kumari <ksinny () gmail ! com>
Date: 2011-01-20 19:50:11
Message-ID: 20110120195011.A8E27AC8B7 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1216005 by sinnykumari:
Make wallpaper capable of setting particular Image
http://svn.reviewboard.kde.org/r/6375/
M +10 -0 wallpaper.cpp
M +17 -0 wallpaper.h
--- trunk/KDE/kdelibs/plasma/wallpaper.cpp #1216004:1216005
@@ -132,6 +132,16 @@
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)
{
QString constraint;
--- trunk/KDE/kdelibs/plasma/wallpaper.h #1216004:1216005
@@ -86,6 +86,14 @@
~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.
*
* @arg formFactor the format of the wallpaper being search for (e.g. desktop)
@@ -395,6 +403,15 @@
*/
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:
/**
* This constructor is to be used with the plugin loading systems
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic