This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KIconLoader::Small

Tags: None
(comma "," separated)
hayzel
Registered Member
Posts
4
Karma
0
OS

KIconLoader::Small

Sat Nov 13, 2010 11:51 am
I have the following code:

Code: Select all
...
item->setIcon(0,iconLoader->loadIconSet("item_program",KIconLoader::Desktop));
....
item->setIcon(0,iconLoader->loadIconSet("item_matrix",KIconLoader::Desktop));
....
item->setIcon(0,iconLoader->loadIconSet("item_program",KIconLoader::Small));
....
item->setIcon(0,iconLoader->loadIconSet("item_matrix",KIconLoader::Small));
....

"item_program" and "item_matrix" are scalable custom made icons I installed correctly in my app dir.
item is a QTreeWidgetItem* , so I am filling a QTreeWidget*

The first,3rd,4rth loadIconSet work fine. KIconLoader::Desktop gives me a bigger icon as I want, and KIconLoad::Small gives me a small icon in the tree.
The third loadIcon fails and give me the "unknown" icon in the tree.
If I change KIconLoader::Small to ::Desktop in the third sentence it shows the icon but in bigger size than I want.

Any ideas, why the "item_program" icon fails in KIconLoader::Small group?

Thanks in advance.


image :
http://imagebin.ca/view/BElyfiFM.html
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KIconLoader::Small

Sun Nov 14, 2010 6:40 am
Where did you install these icons? Are they .svg / .svgz files? Can you reproduce under a new user?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]