Multiple main window support, and action-collections

David Nolden david.nolden.kdevelop at art-master.de
Mon Jul 27 06:15:33 UTC 2009


Am Montag 27 Juli 2009 02:56:42 schrieb Andreas Pakulat:
> > In this one?
> > createActionsForMainWindow(Sublime::MainWindow* window, QString& xmlFile,
> > KActionCollection& actions)
> >
> > Api-wise this function, being in IPlugin, doesn't look good. Functions
> > which modify their arguments are a bit confusing.
>
> Hmm, but it does make the default setup easier, i.e. supplying the
> KActionCollection from the xmlgui client. The xmlfile indeed is a bit
> strange and might be better in a separate function.
When the xml-file was a separate function, it would be decoupled from the 
actions, and it would be even less clear that it always needs to be set for 
the actions to work. This way, it's clear that if you want the actions to 
work, you also have to set an xml file.

Greetings, David





More information about the KDevelop-devel mailing list