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

List:       kde-commits
Subject:    extragear/plasma/applets/frame
From:       Will Stephenson <wstephenson () kde ! org>
Date:       2008-05-24 9:10:28
Message-ID: 1211620228.688976.8360.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 811962 by wstephens:

If the frame is instantiated with a URL in its args, start displaying that image.  \
This allows the user to drag images onto the desktop and create Picture Frames in \
doing so.

 M  +6 -1      frame.cpp  


--- trunk/extragear/plasma/applets/frame/frame.cpp #811961:811962
@@ -62,6 +62,11 @@
     setCacheMode(QGraphicsItem::NoCache);
     resize(350, 350*800/1280);
     m_mySlideShow = new SlideShow();
+    if ( args.count() == 3 ) {
+        m_currentUrl = args.value(2).toString();
+    } else {
+        m_currentUrl = KUrl("Default");
+    }
 }
 
 Frame::~Frame()
@@ -99,7 +104,7 @@
     m_recursiveSlideShow = cg.readEntry("recursive slideshow", false);
     m_slideShowPaths = cg.readEntry("slideshow paths", QStringList());
     m_slideshowTime = cg.readEntry("slideshow time", 10); // default to 10 seconds
-    m_currentUrl = cg.readEntry("url", "Default");
+    m_currentUrl = cg.readEntry("url", m_currentUrl);
     m_potdProvider = cg.readEntry("potdProvider", "");
     m_potd = cg.readEntry("potd", false);
 


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

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