logo       

Re: KParts question: msg#00332

kde-devel

Subject: Re: KParts question

A Dimarts, 28 de juliol de 2009, Matteo Agostinelli va escriure:
> Hello!
>
> I am curently developing a KDE application based on the Kate part. I have
> created the template using kapptemplate. Now I would like to customize the
> contents of the menu and, while I am able to add new actions, I cannot
> remove existing elements, inherited from the Kate part. For example, let's
> assume that I want to remove the Save and Save As... actions from the File
> menu.
>
> <MenuBar>
> <Menu name="file" noMerge="1"><text>&amp;File</text>
>
> <Action name="file_open" />
> <Action name="file_open_recent" />
>
> <DefineGroup name="save_merge"/>
> <Separator/>
>
> <DefineGroup name="revert_merge" append="revert_merge"/>
> <DefineGroup name="print_merge" append="print_merge"/>
> <Separator/>
>
> <Action name="file_quit"/>
> </Menu>
>
> If I remove the line '<DefineGroup name="save_merge"/>', I still get the
> Save and Save as elements. They are just shifted to the bottom of the menu
> but they are not removed. So, is it possible to remove them at all?

Sounds like a bug, can you share your code?

Albert

>
> Thanks,
> Matteo


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise