scummvm/scummvm — pull request #138 by tsoliman (2011-12-13 03:37:31+00:00)
Title: KEYMAPPER: Switch to using addClearButton() 

Keymapper has duplicate code from addClearButton() because it uses widgets dynamically not in a layout. The curent addClearButton requires a name and will look up that name in the layout.

This proposal allows the reuse of code from addClearButton but also adds some logic there for calling the alternative widget constructor.