guiFactory() in KTextEditor::MainWindow
christoph at cullmann.io
Thu Jan 16 19:27:29 GMT 2020
On 2020-01-16 17:44, Thomas Friedrichsmeier wrote:
> On Mon, 06 Jan 2020 19:50:17 +0100
> Christoph Cullmann <christoph at cullmann.io> wrote:
>> For the proposed extension/change: Perhaps we should do it the other
>> way around:
>> 1) Deprecate KTextEditor::MainWindow::guiFactory()
>> 2) Let the host application add the plugin views to it's GUI by
>> "requiring" that they
>> inherit from the KXMLGUIClient
> Well, that wasn't quite as easy as expected, formally, as KXMLGUIClient
> is not derived from QObject.
Hmm, we could extend it to have some Q_DECLARE_INTERFACE declared, then
cast it with qobject_cast.
On the other side, even dynamic_cast should be no issue, given I doubt
we compile anywere without RTTI.
> Anyway, a proposal along those lines is now in a side-branch of the
> ktexteditor and kate repositories (and it appears to be functional,
> too). I hope that is an appropriate place.
Sure, that is very nice, we don't loose your work that way that easily
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org
More information about the KWrite-Devel