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

List:       ktexteditor-devel
Subject:    KParts, widget() and multiple views in katepart
From:       Adam Treat <treat () kde ! org>
Date:       2006-07-21 22:42:03
Message-ID: 200607211842.03242.treat () kde ! org
[Download RAW message or body]

Currently Katepart does not implement widget() when the part is a ReadOnly.  

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.

Sound ok?

Adam
_______________________________________________
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