[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: Adam Treat <treat () kde ! org>
Date: 2006-07-21 23:01:05
Message-ID: 200607211901.05764.treat () kde ! org
[Download RAW message or body]
On Friday 21 July 2006 6:50 pm, Christoph Cullmann wrote:
> Am Samstag, 22. Juli 2006 00:42 schrieb Adam Treat:
> > Currently Katepart does not implement widget() when the part is a
> > ReadOnly.
>
> Guess you mixed that up, Kate Part does not implement it if the factory
> loads it explicit as KTextEditor::Document or KDocument::Document ;)
Oh? Line #63 in katefactory.cpp:
bool bWantSingleView = ( classname == "KTextEditor::Editor" );
Unless the factory loads it explicitly as "Editor" it doesn't implement
widget();
> Still the question is: What should katepart do if it is created as
> KDocument::Document by request? Should it turn of the deletion by itself?
> Otherwise still destroying the widget() would destroy any other view...
Yes, I think that is the idea. If bWantSingleView is false, then katepart
will handle destruction itself.
Adam
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic