KConfigXT Flaws

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Wed Jan 28 12:03:16 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----

On Sunday 25 January 2004 15:44, Frerich Raabe wrote:

> - It is not possible to dictate KConfigDialog not to use any default button
> at all. This is annoying when you have e.g. a KLineEdit in the dialog:
> entering a text there and then pressing return immediately triggers the
> default button (which is often "Ok", which in turn closes the dialog). A

KLineEdit has a method setTrapReturnKey( bool trap ), that is designed to fix 
exactly that issue. That way, you can still close the dialog by pressing 
return, if the lineedit doesn't have the focus. And if it does have the 
focus, you can close the dialog with Ctrl-Return.

The same applies to editable comboboxes btw.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBQBelBKWgYMJuwmZtAQGGigf+MZ1qBBCp0LrnnemoO/t3zMYbxuyc+qxe
HI5YnoZ7Ei3aF+iS7OQDBzwMt8/l1jlEcHztq3882BuV81EiLwwGbl9bi5d+izqi
EMJcVxqa+3UvDSwOTfuL9iJuxr9Vmbi8ggFUyW7jolLPUTRbF1ytQkGvLKuP5huQ
pzQi4iytEeasiKhEFctWtgXfAwczeEbZAcdKdp8RDGuI9iSlhxaXrTbtbsQLHfkd
RSpaRrnYxi59UxSu1Z99wJntABog5woF/mi4Haj+5RoEdYtpbFR+gh9GS6p4P6SE
Gf/K5uFus1JgI9tizR8YX7D7E+GiIuLozYM/DWiKx3ium2HgWBzC4w==
=FeV+
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list