[Patch] Fix for icon loading when asked for icon via KIconTheme::iconPath (const QString &, int, KIcon::MatchType) and KIconTheme::iconPath (const QString ).

Piotr Szymanski djurban at pld-dc.org
Thu Jun 3 18:12:24 BST 2004


Hi,
My last commit in kdebase/kcontrol/icons/icontheme.cpp removing .png  from the 
icon names caused an unexpected bug (no preview at all). It was like this 
because the KIconTheme::iconPath function used there was expecting the name 
to have an extension (as opposing to what the documentation said 
http://developer.kde.org/documentation/library/3.2-api/kdecore/html/classKIconTheme.html#a19). 

The attached patch fixes it (now it tries name.png,name.svg,name.svgz an 
name.xpm, in that order). It also is backward compatible.
Please review it.
-- 
Piotr Szymanski
djurban at pld-linux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs-svgsupport.patch
Type: text/x-diff
Size: 1282 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040603/6bf96969/attachment.patch>


More information about the kde-core-devel mailing list