Wednesday 17 May 2006 21:14, David Faure wrote:
Wednesday 17 May 2006 18:41, Dmitry Suzdalev wrote:
Wednesday 17 May 2006 12:26, David Faure wrote:
You should use KIconLoader (e.g. via KGlobal::iconLoader()-or the
static functions in kiconloader.h) to load the icons, so that icon
themes work. For large images you probably want to use UserIcon().
Hmm, are you sure? I meant not icons, but a custom pixmaps. There's no
need to support "icon themes" there :).
Maybe I wasn't very clear. Well, for example, will KTip use KIconLoader
to load the image of a light bulb?
kiconloader's UserIcon can be used for loading custom pixmaps,
but you're right, ktip uses QPixmap(locate("data",
"kdeui/pics/ktip-bulb.png")) for loading the bulb image.
Thanks for pointing that out, as I had difficulties locating ktip source :).
Ah, those newbies ;)
So, is it okay if I'll convert the form to use QPixmap's loading functions
(this seems more logical to me than using KIconLoader)?
Dmitry.
>Visit #unsub to unsubscribe <<