The only issues with this gui is that when i connect the docks visibilityChanged to the actions setChecked and the actions toggled to the docks setVisibility you lose the ability to tabify them since when they are not the active tabified dock they close because of the toggle of the action. Something is wrong in how im doing this menu and that needs to be fixed before this can be merged. To see the behavior you need to uncomment the connects for the docks signal in testclient/mainwindow.cpp .
UPDATE:
This is better but not perfect with KXMLGui. Now the problem is that when tabified the items within the view menu are only check if the widget is the selected tab. This is much better then them disapearing but we still need to address this problem before merging this.