On Tuesday 21 February 2006 02:40, Paulo Moura Guedes wrote:
> 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.


QPtrList sucks big time when it comes to constness.
It's gone in Qt4 for that reason, so this is already fixed

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

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