[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kde-app and diabled icons
From: Malte Starostik <malte () kde ! org>
Date: 2001-06-30 21:38:07
[Download RAW message or body]
On Samstag, 30. Juni 2001 23:28, Martijn Klingens wrote:
> On Saturday 30 June 2001 22:56, Thomas Satzinger wrote:
> > i do the following
> > KGlobal::instance()->iconLoader()->loadIcon( "name_of_icon_file",
> > KIcon::NoGroup, KIcon::Small )
> >
> > i have the icon in $kde_dir/share/icons
> >
> > i have read somewhere, that kde takes care to apply the visual effect for
> > different situations(enabled/disbaled)but somehow it doesn´t work here
> > for me
> >
> > i think i did oversee something very aesy
>
> Well.. I returns a QPixmap and AFAIK you need a QIconSet to have a set of
> different icons depending on the state. But I'm not sure what method is
> recommended there.
>
> I personally always use the global functions from kiconloader.h:
>
> QIconSet *is = SmallIcon( "name-of_icon_file" );
>
> But I'm not at all sure that is the best way. It seems to work though.
SmallIcon() returns a QPixmap, just like KIconLoader::loadIcon(), guess you
meant SmallIconSet() instead.
Just in case Thomas tried and got the same result as with his approach :)
-Malte
>> Visit http://master.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