On Monday 20 February 2006 09:05, David Faure wrote:
> On Monday 20 February 2006 02:56, Paulo Moura Guedes wrote:


> > 1. Well I tried with KTextEditor Document / View classes and it was
> > enough to call insertChildClient(view) for the GUI to update
> > automatically. But for other parts (e.g. KTextEditor::Editor) I have to
> > call createGUI(). But how do I know the reference of the main window
> > object? It is a part, the main window object can be anything, and there
> > is no interface to set the object.

>
> factory()->removeClient() + insertChildClient + factory()->addClient()
> should work, instead of calling createGUI.


Great, it works!
Just a side note; it would be useful that KXMLGUIClient::childClients() also
returned a non const QPtrList.

> > 2. I didn't test it yet but would it work to set a PartManager to a part,
> > with the part top level widget (Part::widget()) being the parent of the
> > PartManager, in order to do embeded part management?

>
> If I understand this right, then yes.


Confirmed. It works to pass the part parent widget.

Paulo

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