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

List:       kde-commits
Subject:    kdebase/kcontrol/background
From:       Stephan Binner <binner () kde ! org>
Date:       2005-04-04 19:59:28
Message-ID: 20050404195928.0E54E63E () office ! kde ! org
[Download RAW message or body]

CVS commit by binner: 

Bug 102244: SVG files unavail from file selector in slide show


  M +9 -1      bgwallpaper.cpp   1.11


--- kdebase/kcontrol/background/bgwallpaper.cpp  #1.10:1.11
@@ -21,4 +21,6 @@
  */
 
+#include <config.h>
+
 #include <qcheckbox.h>
 #include <qevent.h>
@@ -143,6 +145,12 @@ void BGMultiWallpaperDialog::setEnabledM
 void BGMultiWallpaperDialog::slotAdd()
 {
+    QString pattern = KImageIO::pattern();
+#ifdef HAVE_LIBART
+    pattern = "*.svg *.svgz " + pattern;
+    pattern += "\n*.svg *.SVG *.svgz *.SVGZ|Scalable Vector Graphics";
+#endif
+
     KFileDialog fileDialog(KGlobal::dirs()->findDirs("wallpaper", "").first(),
-                           KImageIO::pattern(), this,
+                           pattern, this,
                            0L, true);
 


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

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