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

List:       kde-commits
Subject:    playground/utils/rsibreak
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2006-02-12 21:11:27
Message-ID: 1139778687.772075.11176.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 508843 by toma:

- Delete readme when packaging
- EOL fix for AUTHORS file
- Dont follow symlinks while looking for images.



 M  +2 -1      AUTHORS  
 M  +1 -1      release_rsibreak.rb  
 M  +6 -5      src/rsiwidget.cpp  


--- trunk/playground/utils/rsibreak/AUTHORS #508842:508843
@@ -3,4 +3,5 @@
 
 Contributors:
     Lee Olson <clearbeast@gmail.com>            : Logo and Icons
-    Bram Schoenmakers <bramschoenmakers@kde.nl> : Various contributions
\ No newline at end of file
+    Bram Schoenmakers <bramschoenmakers@kde.nl> : Various contributions
+
--- trunk/playground/utils/rsibreak/release_rsibreak.rb #508842:508843
@@ -165,7 +165,7 @@
 #`/bin/mv -f README ..`
 `/bin/mv -f TODO ..`
 #`/bin/mv -f HACKING ..`
-`/bin/rm release_rsibreak.rb makechangelog ../INDEX src/original_artwork.tar.gz`
+`/bin/rm release_rsibreak.rb makechangelog ../INDEX ../README src/original_artwork.tar.gz`
 Dir.chdir( ".." )
 
 
--- trunk/playground/utils/rsibreak/src/rsiwidget.cpp #508842:508843
@@ -225,11 +225,6 @@
 
     QDir dir( folder);
 
-    // TODO: make an automated filter, maybe with QImageIO.
-    QString ext("*.png *.jpg *.jpeg *.tif *.tiff *.gif *.bmp *.xpm *.ppm *.pnm *.xcf *.pcx");
-    dir.setNameFilter(ext + " " + ext.upper());
-    dir.setMatchAllDirs ( true );
-
     if ( !dir.exists() or !dir.isReadable() )
     {
         kdWarning() << "Folder does not exist or is not readable: "
@@ -237,6 +232,12 @@
         return;
     }
 
+    // TODO: make an automated filter, maybe with QImageIO.
+    QString ext("*.png *.jpg *.jpeg *.tif *.tiff *.gif *.bmp *.xpm *.ppm *.pnm *.xcf *.pcx");
+    dir.setNameFilter(ext + " " + ext.upper());
+    dir.setFilter(QDir::Dirs | QDir::Files | QDir::NoSymLinks );
+    dir.setMatchAllDirs ( true );
+
     const QFileInfoList *list = dir.entryInfoList();
     if (!list)
         return;
[prev in list] [next in list] [prev in thread] [next in thread] 

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