Review Request: Honor the possible custom folder icon in the Folder preview (thumbnail kioslave)

David Nolden zwabel+reviewboard at gmail.com
Wed Jan 20 20:42:30 GMT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2658/#review3765
-----------------------------------------------------------


Looks ok to me, even if not exactly pretty. Whether that's the right way of fetching the icon should be decided by an expert in that area, which I ain't. :)

- David


On 2010-01-20 13:44:12, Darío Andrés wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2658/
> -----------------------------------------------------------
> 
> (Updated 2010-01-20 13:44:12)
> 
> 
> Review request for kdelibs, Peter Penz, David Nolden, and David Faure.
> 
> 
> Summary
> -------
> 
> Current Folder preview generator (which shows thumbnails of the folder contents images/files) doesn't honor the possible custom folder icon.
> Using "KMimeType::iconNameForUrl" we can determine the custom icon inside the ".directory" file (if available) or fallback to the normal folder icon.
> As the thumbnail generator method for folders get a KUrl with the "thumbnail:/" schema, "KMimeType::iconNameForUrl" is not going to work. 
> 
> As I saw this is likely to work only with local files I added a scheme change (to "file:/") in order to make the function work again. However, I'm not really sure about this.
> 
> 
> This addresses bug 201850.
>     https://bugs.kde.org/show_bug.cgi?id=201850
> 
> 
> Diffs
> -----
> 
>   svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase/runtime/kioslave/thumbnail/thumbnail.cpp 1077195 
> 
> Diff: http://reviewboard.kde.org/r/2658/diff
> 
> 
> Testing
> -------
> 
> Custom icons are honored in the folder preview. Folders without custom icon still use the normal image.
> 
> 
> Thanks,
> 
> Darío
> 
>





More information about the kde-core-devel mailing list