[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kparts installation questions
From:       Anatoli Gorchetchnikov <anatoli () cns ! bu ! edu>
Date:       2001-03-30 21:29:14
[Download RAW message or body]

Hi!

On Friday 30 March 2001 03:55 pm, David Faure wrote:
> On Friday 30 March 2001 19:47, Anatoli Gorchetchnikov wrote:
> > I have
> >
> > icon_DATA = cheese.png floor.png wall.png rat0000.png\
> >                 rat0001.png rat0007.png rat0006.png\
> > 		rat0005.png rat0004.png rat0003.png rat0002.png
> >
> > icondir = $(kde_datadir)/kmazepart/pics
> >
> > in Makefile.am, and indeed they are installed there, but
> > they are not found during part loading. What am I missing?
> >
> > I use them like this:
> >
> > QPixmap *pix = new QPixmap("floor.png");
>
> That's not going to find it, QPixmap doesn't know about KDE
> directories ;-)
>
> QPixmap pix = UserIcon("floor")
> is probably what you want.

Not perfect either :-) It does work if I have floor.png in 
appdir/pics, but not in the kmazepart/pics, which is not that 
good if some other crazy program will use this part.

Thanks.

-- 
WBR,

TAnGorN
 
>> 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