Review Request 127713: Specify the generic "unknown" icon as fallback to QIcon::fromTheme()

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Fri Apr 22 20:54:55 BST 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127713/#review94769
-----------------------------------------------------------


Ship it!




Looks good, thanks!


src/kitemviews/kstandarditemlistwidget.cpp (line 1448)
<https://git.reviewboard.kde.org/r/127713/#comment64390>

    I don't know how expensive QIcon::fromTheme() is, but maybe we should store the unknown icon in a static variable? What do you think?


- Emmanuel Pescosta


On April 22, 2016, 9:39 p.m., Wolfgang Bauer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127713/
> -----------------------------------------------------------
> 
> (Updated April 22, 2016, 9:39 p.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Bugs: 358958 and 361034
>     https://bugs.kde.org/show_bug.cgi?id=358958
>     https://bugs.kde.org/show_bug.cgi?id=361034
> 
> 
> Repository: dolphin
> 
> 
> Description
> -------
> 
> The default fallback of QIcon::fromTheme() is QIcon(), i.e. a null icon. Set the generic "unknown" icon as fallback to prevent missing icons for filetypes that specify an icon name that doesn't exist.
> 
> This also gets rid of "QPixmap::scaled: Pixmap is a null pixmap" warnings in that case.
> 
> 
> Diffs
> -----
> 
>   src/kitemviews/kstandarditemlistwidget.cpp 66131d5 
> 
> Diff: https://git.reviewboard.kde.org/r/127713/diff/
> 
> 
> Testing
> -------
> 
> Open a folder that contains files whose filetype specifies an nonexistent icon name (/dev/ contains a lot of those here).
> They show up using the generic "unknown" icon now, see attached screenshots.
> 
> 
> File Attachments
> ----------------
> 
> without the patch
>   https://git.reviewboard.kde.org/media/uploaded/files/2016/04/22/aec678ba-5769-4fc8-8632-6f5fba301652__before.png
> same folder with the patch
>   https://git.reviewboard.kde.org/media/uploaded/files/2016/04/22/d2201425-a987-4611-812a-ae50ed24b32e__after.png
> 
> 
> Thanks,
> 
> Wolfgang Bauer
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20160422/4fbaec4f/attachment.htm>


More information about the kfm-devel mailing list