[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/generic/wallpapers/image
From:       Sinny Kumari <ksinny () gmail ! com>
Date:       2011-01-25 20:02:22
Message-ID: 20110125200222.98739AC8B9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1217110 by sinnykumari:

Overrides Plasma::wallpaer method addUrls() to set Image
http://reviewboard.kde.org/r/6391/


 M  +8 -0      image.cpp  
 M  +3 -0      image.h  


--- trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/image.cpp #1217109:1217110
@@ -135,6 +135,14 @@
     m_model = 0;
 }
 
+void Image::addUrls(const KUrl::List &urls)
+{
+  foreach(const KUrl& url, urls) {
+    setWallpaper(url);
+  }
+     
+}
+
 QWidget* Image::createConfigurationInterface(QWidget* parent)
 {
     m_configWidget = new QWidget(parent);
--- trunk/KDE/kdebase/workspace/plasma/generic/wallpapers/image/image.h #1217109:1217110
@@ -51,6 +51,9 @@
     signals:
         void settingsChanged(bool);
 
+    protected Q_SLOTS:
+        void addUrls(const KUrl::List &urls);
+
     protected slots:
         void removeWallpaper(QString name);
         void timeChanged(const QTime& time);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic