[Kde-games-devel] Re: KToolBar ?

cantabile cantabile.03 at wanadoo.fr
Fri Aug 22 01:03:48 CEST 2003


Le jeu 21/08/2003 à 22:58, Aaron J. Seigo a écrit :

> you either plug it in manually:
> 
> 	KAction* action = new KAction(i18n("&Stop"), QIconSet(QPixmap("/pics/stop.
> png")),0,  this, SLOT(slotstop()),actionCollection(), "stop_anim");
> 	action->plug(toolbar());
> 
> or you define a toolbar in your ui.rc file and put the action by name there:
> 
>  <ToolBar name="mainToolBar" fullWidth="true" >
>   <Separator/>
>   <Action name="stop_anim"/>
>  </ToolBar>

Well, it works perfectly well. Actually, I  hadn't install the program
(just hit make in KDevelop :D ). I thought I hadn't understood
something.

It's so simple you can't believe it at first !

Thanks for the help, everybody.

Good evening to all.
Cantabile.



More information about the kde-games-devel mailing list