KTextWidgets is only used for KTextEdit in KBugReport. Replace it with QTextEdit to get rid of the dep
Easy to do http://www.davidfaure.fr/2019/kxmlgui_remove_ktextwidgets.diff but this breaks compilation of tests/krichtexteditor/CMakeLists.txt
That's a GUI test program for KRichTextEditor (which lives in KTextWidgets), but since the test program uses KXmlGui, it lives in KXmlGui.
Solution 1: we move it to *somewhere* which depends on both.... Any ideas?
Solution 2: we port it away from kxmlgui but that's a bit sad, it is showing how the integration between the two works, which is how apps would most likely use krichtexteditor.