[PATCH] KAcceleratorManager is broken wrt QDockWidget

Friedrich W. H. Kossebau kossebau at kde.org
Sat Jan 3 22:03:23 GMT 2009


Am Samstag, 3. Januar 2009, um 14:58 Uhr, schrieb Friedrich W. H. Kossebau:
> Am Mittwoch, 31. Dezember 2008, um 02:32 Uhr, schrieb Friedrich W. H.
> Kossebau:
> The attached patch tries to solve the problem by dropping those QTabBars
> from accelerator setting which stack the QDockWidgets. Not perfect, but
> works better than before, i.e. no endless loop for accelerator setting. The
> tab texts get the accelerators from the QDockWidgets title, also the hidden
> ones.

One more note: If I read the code correctly QDockWidget does not grab a 
shortcut at all, despite displaying an underscore for the marked key in the 
title. Oh yeah... So if you ever tried to put the focus to a QDockWidget, now 
you know.

Yet the patch I sent before does not receive an update due to this, because on 
every update of the tabbar all the tab texts get reset to the title of the 
QDockWidget if different. So for now the QDockWidget has to keep the 
accelerator in its title, unless someone can come up with a better solution. 
Or fix Qt.

qt-bugs has been bombardized about QDockWidget tonight by me. I am all but in 
love with it, sigh.

Friedrich
-- 
Okteta - KDE 4 Hex Editor - http://utils.kde.org/projects/okteta




More information about the kde-core-devel mailing list