guiFactory() in KTextEditor::MainWindow
Dominik Haumann
dhaumann at kde.org
Fri Jan 17 07:11:38 GMT 2020
You should add an item to the KF6 workboard:
https://phabricator.kde.org/tag/kf6/
Best regards Dominik
Christoph Cullmann <christoph at cullmann.io> schrieb am Do., 16. Jan. 2020,
20:27:
> 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
> ;=)
>
> Greetings
> Christoph
>
> >
> > Regards
> > Thomas
>
> --
> Ignorance is bliss...
> https://cullmann.io | https://kate-editor.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20200117/4bb59e45/attachment-0001.html>
More information about the KWrite-Devel
mailing list