XMLGUI: preventing merges into a specific toolbar

David Faure faure at kde.org
Tue Apr 29 14:42:07 BST 2008


On Tuesday 29 April 2008, Andras Mantia wrote:
> On Monday 28 April 2008 23:12:13 David Faure wrote:
> > On Monday 28 April 2008, Vladimir Prus wrote:
> > > Is it possible, using XMLGUI to specify that a given toolbar defined
> > > by the application should never get any actions added from new xmlgui
> > > clients. In other words, the toolbar should only have actions from
> > > applications's actionCollection().
> >
> > No.
> 
> You can use your own KXmlGuiBuilder and filter out anything that wants to go 
> to a specific toolbar, no?

It's an idea, but is it doable, given that KXmlGuiWindow is the KXmlGuiBuilder of its factory() already?
I'm not sure you can set up another builder for a given factory (and you'd have to forward all method calls...)
I'd prefer a clean filter concept being introduced :)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list