guiFactory() in KTextEditor::MainWindow
dhaumann at kde.org
Fri Jan 17 07:11:38 GMT 2020
You should add an item to the KF6 workboard:
Best regards Dominik
Christoph Cullmann <christoph at cullmann.io> schrieb am Do., 16. Jan. 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
> you can
> 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
> > Regards
> > Thomas
> Ignorance is bliss...
> https://cullmann.io | https://kate-editor.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel