[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Another Question about Icon Loading (attempt #2)
From: "Lawrence E. Widman" <widman () cardiothink ! com>
Date: 2002-01-20 6:43:15
[Download RAW message or body]
I'm trying again to get advice on how to load toolbar icons for the kdat
project, which I am now maintaining. I've reviewed the correspondence
initiated by Jan Ekholm on this list, and searched for KIconLoader in
the list archives back to 30 Dec 2000.
IN A NUTSHELL, I can now get UserIcon to look in
/opt/kde3/share/apps/kdat/icons/hicolor/32x32/apps/
/opt/kde3/share/apps/kdat/icons/hicolor/48x48/apps/
It should be looking in
/opt/kde3/share/apps/kdat/icons/locolor/16x16/apps/
I instantiated the icon loader 2 ways (where appname = QString("kdat"):
KIconLoader *l = new KIconLoader(appname);
and
KInstance *instance = new KInstance( QCString("kdat") );
KIconLoader *l = instance->iconLoader();
Both ways yielded the same output.
The icon size and theme are 22 and KDE-HiColor, respectively, from
l->currentSize(KIcon::Toolbar) and l->theme()->name().latin1().
How can I get UserIcon to look in
/opt/kde3/share/apps/kdat/icons/locolor/16x16/apps/ ?
KIcon::Small specifies size 16, but UserIcon doesn't allow specification of
an icon size or theme (e.g., "locolor"), only the name and state.
I am running KDE3 under KDE2 with KDEDIR and LD_LIBRARY_PATH
pointing to the KDE3 install directory and libraries, respectively.
Thanks - Larry Widman
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic