guiFactory() in KTextEditor::MainWindow

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Jan 17 12:55:34 GMT 2020


On Thu, 16 Jan 2020 20:27:29 +0100
Christoph Cullmann <christoph at cullmann.io> wrote:
> 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.

Yes, dynamic_cast should do the trick, and will make my suggested patch
much cleaner. I'll update it using that.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20200117/2947e192/attachment.sig>


More information about the KWrite-Devel mailing list