KConfigXT Flaws

Frerich Raabe raabe at kde.org
Wed Jan 28 15:36:50 GMT 2004

On Wed, Jan 28, 2004 at 01:03:16PM +0100, Carsten Pfeiffer wrote:
> 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.

Aaah, very nice, I did not know about that feature yet. Thank you a lot! :-)

- Frerich

More information about the kde-core-devel mailing list