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

List:       ktexteditor-devel
Subject:    Re: KParts, widget() and multiple views in katepart
From:       Christoph Cullmann <cullmann () babylon2k ! de>
Date:       2006-07-21 22:56:31
Message-ID: 200607220056.31607.cullmann () babylon2k ! de
[Download RAW message or body]

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 ;)

>  
>
> I think this is wrong as it makes the documentation for KParts::widget()
> into a liar.  The solution is simple, katepart can call KParts::setWidget()
> on the KTextEditor::Document::activeView().  Unfortunately, this introduces
> a problem because KParts insists on handling the deletion of the part if
> the widget is deleted.
>
> So, my solution is to introduce a protected function/variable in KParts
> like 'handleWidgetDeletion' that setWidget() will honor.
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...


cu
Christoph
_______________________________________________
KTextEditor-Devel mailing list
KTextEditor-Devel@kde.org
https://mail.kde.org/mailman/listinfo/ktexteditor-devel

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

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