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

List:       kde-devel
Subject:    Re: KActionMenu and XMLGUI
From:       Dominique Devriese <dominique.devriese () student ! kuleuven ! ac ! be>
Date:       2002-11-07 22:20:14
[Download RAW message or body]

munehiro  writes:

oh, right, now i think i understand what you mean...
You should read the section in the KStdAction docs about "Non-standard
Usage"...

specifically this section:

 * However, you can change the internal name.  In this example, just
 * do something like:
 *
 * <PRE>
 * (void)KStdAction::cut(this, SLOT(editCut()), actionCollection(),
   "my_cut");
 * </PRE>

> <!DOCTYPE kpartgui> <kpartgui>
>  <MenuBar>
>   <Menu name="file">
>    <Menu name="file_new"><text>&New</text>
>     <Action name="new_action_a" />
>    </Menu>
>   </Menu>
>  </MenuBar>
> </kpartgui>

You can use this xml code with this C++ code:

KStdAction::new( this, SLOT( ... ), actionCollection(), "new_action_a" );

cheers
domi

-- 
You will soon meet a person who will play an important role in your life.
 
>> Visit http://mail.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