soul_rebel
16th March 2006, 19:40
i use kde xml gui creation and make my own kaction objects like this
(void)new KAction(string1, loader.loadIcon((QString)"2uparrow", KIcon::MainToolbar), 0, m_view, SLOT(updatePorts()), actionCollection(), "action");
the problem is that the icon is always 16x16 or 22x22 no matter what size the toolbar actually is (other kstdaction toolbar buttons have the right size and resize properly).
how can change this?
thanks for help
ps.: the icons actually exist in the right size in iconset
(void)new KAction(string1, loader.loadIcon((QString)"2uparrow", KIcon::MainToolbar), 0, m_view, SLOT(updatePorts()), actionCollection(), "action");
the problem is that the icon is always 16x16 or 22x22 no matter what size the toolbar actually is (other kstdaction toolbar buttons have the right size and resize properly).
how can change this?
thanks for help
ps.: the icons actually exist in the right size in iconset