[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 23:10:24
[Download RAW message or body]
On Friday 30 March 2001 22:29, Anatoli Gorchetchnikov wrote:
> 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.
Oh it's a part.
Then UserIcon("floor", instance())
--
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