From kde-devel Wed May 26 17:23:50 1999 From: David Faure Date: Wed, 26 May 1999 17:23:50 +0000 To: kde-devel Subject: Re: kdeutils/kpm X-MARC-Message: https://marc.info/?l=kde-devel&m=92773887505544 On Wed, May 26, 1999 at 11:50:51AM +0200, Stephan Kulow wrote: > David Faure wrote: > > > > On Tue, May 25, 1999 at 11:11:15PM +0200, Stephan Kulow wrote: > > > CVS by dfaure wrote: > > > > > > > > kdeutils/kpm qps.C,1.8,1.9 > > > > Author: dfaure > > > > CVSROOT: /home/kde > > > > Tue May 25 22:57:01 MET DST 1999 > > > > Update of /home/kde/kdeutils/kpm > > > > In directory zeus:/tmp/cvs-serv18328 > > > > > > > > Modified Files: > > > > qps.C > > > > Log Message: > > > > icon loading fixes. > > > > What's the difference between loadApplicationIcon and ICON() ? > > > > > > Good question as this is done often wrong. > > > > > > ICON uses toolbar icons while loadApplicationIcon uses > > > icons that application install for the K menu. That's > > > a main difference that the old KIconloader used to mix ;( > > It's a different meaning but it's the same way of finding the icon, isn't it ? > > > > I'm really confused now. > > > > QPixmap KIconLoader::loadApplicationIcon ( const QString& name, int w, int h ) > > { > > QPixmap result = loadIcon(locate("icon", name), w, h); > > return result; > > } > > > > Doesn't that mean "no difference at all" ??? > > > Nono. there is a difference between share/icons and share/toolbar Yes, there is. But KIconLoader has both in its search path. And it should be said that ICON (and Icon) are for toolbar icons only. That would remove a bit of the confusion. -- David FAURE david.faure@insa-lyon.fr, faure@kde.org http://www.insa-lyon.fr/People/AEDI/dfaure/index.html KDE, Making The Future of Computing Available Today