Use QDockWidget's toggle action to make docking windows visible.
commit43623f45f04b6bcaec650c7fc7248c7490cd7f24
authorJohannes Sixt <j6t@kdbg.org>
Sat, 14 Jan 2017 20:45:39 +0000 (14 21:45 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Sat, 14 Jan 2017 20:45:39 +0000 (14 21:45 +0100)
tree4038834e836bb641c8ba5c2ed8c845b60850b9dc
parent8104d85ca896faf23bbe389169a98cfb30c99b15
Use QDockWidget's toggle action to make docking windows visible.

The entries in the View menu do nothing. The reason is that the actions are
connected to slot of QDockWidget, but that does neither show nor hide the
Windows. Fortunately, QDockWidget offers an action object that can be used
instead.

On the flip side, we see now warnings on the command line because
KXMLGUIFactory does not like QAction objects so much (although things seem
to work).

Furthermore, the menu text is taken from the dock widget titles and cannot
be overridden in the action that is returned.
kdbg/dbgmainwnd.cpp
kdbg/dbgmainwnd.h