Patch to add key shourtcut names to action's tooltips

Innocent lalekz at gmail.com
Wed May 10 14:43:01 UTC 2006


Hello,
A lot of functions in KDevelop have key shortcuts, and I think it's a good
idea to add shortcut names to the tooltips of the actions. For example,
instead of "Fullscreen" the tooltip for the "fullscreen" toolbar action
will contain "Fullscreen (Ctrl+Shift+F)".
At the moment, debugger component, for example, has hardcoded names
of shortcuts in its tooltips.
Of course, the best way is to ask kdelibs developers to add that feature to
KAction class. However, this can be only done for KDE4.
For the time being I offer the attached patch which just adds shortcut
names to existing tooltips by traversing all KParts and all actions in
their actionCollection()s. It also refreshes tips when one reconfigures
key shourtcuts by the dialog.

Any comments?

Thanks,
Alex Lyubitskiy


More information about the KDevelop-devel mailing list