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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/wallpapers/image
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-01-16 1:02:55
Message-ID: 1232067775.978988.5323.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 911737 by aseigo:

allow external paths in wallpaper image sets.
BUG:180716


 M  +8 -7      backgroundpackage.cpp  


--- trunk/KDE/kdebase/workspace/plasma/wallpapers/image/backgroundpackage.cpp #911736:911737
@@ -54,9 +54,9 @@
 };
 
 ResizeThread::ResizeThread(const QString &path, float ratio, QObject *parent)
-: ThreadWeaver::Job(parent)
-, m_path(path)
-, m_ratio(ratio)
+    : ThreadWeaver::Job(parent),
+      m_path(path),
+      m_ratio(ratio)
 {
 }
 
@@ -149,7 +149,7 @@
 };
 
 BackgroundPackageStructure::BackgroundPackageStructure(QObject *parent)
-: PackageStructure(parent, "Background")
+    : PackageStructure(parent, "Background")
 {
     QStringList mimetypes;
     mimetypes << "image/svg" << "image/png" << "image/jpeg" << "image/jpg";
@@ -157,14 +157,15 @@
 
     addDirectoryDefinition("images", "images", i18n("Images"));
     addFileDefinition("screenshot", "screenshot.png", i18n("Screenshot"));
+    setAllowExternalPaths(true);
 }
 
 
 
 BackgroundPackage::BackgroundPackage(const QString &path, float ratio)
-: Package(path, KSharedPtr<Plasma::PackageStructure>(new BackgroundPackageStructure(this)))
-, m_path(path)
-, m_ratio(ratio)
+    : Package(path, KSharedPtr<Plasma::PackageStructure>(new BackgroundPackageStructure(this))),
+      m_path(path),
+      m_ratio(ratio)
 {
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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