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

List:       kde-devel
Subject:    Re: kparts installation questions
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-03-30 20:55:26
[Download RAW message or body]

On Friday 30 March 2001 19:47, Anatoli Gorchetchnikov wrote:
> Hi!
> 
> One thing I can't fix after looking through plenty of docs:
> My kpart is based on QCanvas and uses png's for sprites etc.
> 
> 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.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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