Suggest to use setupGUI() instead of setXMLFile()
Review Request #128159 - Created June 12, 2016 and submitted
KXMLGui-based apps should always use
setupGUI(), which has several advantages over
setXMLFile()and calls it implicitly.
This patch also adds a code snippet about this.
Hmm, Default includes Create, so this is going to call createGUI twice, the first time wrongly (no part yet).
The other reasons why setupGUI didn't work for KParts::MainWindow seem to be gone though, I see that the standard actions for configuring Keys, StatusBar, ToolBar should work.
So maybe just adjust the example to pass e.g. Keys|ToolBar|Save, and mention that Default shouldn't be used?
Status: Closed (submitted)
Submitted with commit c6a5d8e08001c5f6fe5e072ee48534eee31cab43 by Elvis Angelaccio to branch master.
Not using "Create" with the setupGUI() call though ran across the initial idea of this patch,
as now setXMLFile() is no longer called implicitly when the "Create" flag is not passed to
Filed https://phabricator.kde.org/D5181 to fix this up.