[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KParts, widget() and multiple views in katepart
From:       David Faure <faure () kde ! org>
Date:       2006-07-22 5:14:25
Message-ID: 200607220714.25714.faure () kde ! org
[Download RAW message or body]

On Saturday 22 July 2006 00:42, Adam Treat wrote:
> Unfortunately, this introduces a 
> problem because KParts insists on handling the deletion of the part if the 
> widget is deleted.

That is something I would be glad to remove. I actually even listed it in kdelibs/TODO.
It just causes too many problems.

I would remove both auto-deletions (the view deletes the part, and the part deletes the view).
But the "porting" (fixing the apps accordingly) might be difficult.
In most cases the part view has a parent widget, so views won't leak,
but parts are another story. We'll need to recheck deletion of those.

This will also simplify/change some code in konqueror which had to deal with both kinds of
deletion (including parts that delete themselves like Ctrl-D in konsolepart iirc).

I just don't have time for any of this until September... so feel free to go ahead.

David (currently in San Jose, California)

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic