SV: add icons to project
Rolf Thunbo
rolft at stofanet.dk
Sun Dec 12 13:03:00 GMT 2004
make a prefix in kdevelop, which then in the Makefile.am would look like
mypicsdir = $(kde_datadir)/appname/pics
and then ad target in the subproject where made the prefix, and then choose Data file in the dialog
and the prefix just selected.
Then you can add the icons needed to the newly created target, and can use them by using statements like
UserIcon("iconname", KIcon::DefaultState, appinstance)
Regards,
--
Rolf Thunbo
-----Oprindelig meddelelse-----
Fra: kdevelop at kdevelop.org
Til: kdevelop at kdevelop.org <kdevelop at kdevelop.org>
Emne: Re: SV: add icons to project
Dato: 12-12-2004 13:09:19
> On 12.Dec 2004 - 08:35:41, Rolf Thunbo wrote:
> > Hi Andreas,
> >
> > If you want to have a KDE icon on a button, simply use the methods from the KIconLoader class.
> > How to do this with a 16x16 size icon, is given in the sniplet below,
> >
> > ...
> > m_tagOptionsBtn = new QToolButton( btnBox, "tag options button" );
> > m_tagOptionsBtn->setPixmap( SmallIcon( "configure" ) );
> >
> > I hope is helps.
>
> Yeah, thanks for this project thats fine.
>
> But isn't there an howto on how to manage icons for the project that
> are not going under kde_icon? I had a look at some kde-games where the
> game-graphics are drawn via small icons. The process these use is not
> available under kdevelop3 as far as I can see. They have a pics-dir
> which is basically a data dir that installs the icons under
> $kde_datadir/$project/icons or something similar. But I can't find a
> way to create a sub-project in the automake manager to accomplish
> that, e.g. the Makefile.am looks like the on in the pics dir in
> kbounces. So how do the kdevelop3 users add icons to their project?
>
> Andreas
>
> --
> Try to get all of your posthumous medals in advance.
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>
>
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list