Review Request: Make KModifierKeyInfoProvider inherit QObject, rather than QWidget

Frank Reininghaus frank78ac at
Tue Aug 7 22:21:30 BST 2012

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs, Michael Leupold and Aurélien Gâteau.


The base class of KModifierKeyInfoProvider is QWidget although it seems that this class does not really need anything that QWidget provides and QObject doesn't.

This seems to be related to Dolphin crashes that can happen with some styles and some particular settings, see also

According to, Aurelien wrote the patch which I'm uploading here. Is there any information on why KModifierKeyInfoProvider was derived from QWidget in the first place, or why Aurelien's patch never made it into kdelibs?

The root cause of the crash is probably something else, but having a class inherit QWidget rather than QObject when it's not actually needed looks strange to me in any case. Unless there's a good reason that I'm overlooking here, of course - in that case, I'm curious what it is :-)

This addresses bug 303169.


  kdeui/util/kmodifierkeyinfoprovider_p.h 2df79bc 
  kdeui/util/kmodifierkeyinfoprovider_x11.cpp c6477f9 




Frank Reininghaus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list