Abdelrazak Younes <[EMAIL PROTECTED]> writes:
> addCheckedLineEdit is used indeed in some widgets but I don't really 
> know what it is doing.

One place this stuff *is* used is to check that the contents of two, tied
widgets are mutually consistent. Things like LaTeX glue lengths can be input in
a text input widget as "1cm+0.2-0.5" (or somesuch; I forget the exact syntax).
However, "normal" users can also input "1" in the text input widget and choose
"cm" from the associated combobox.

Clearly, it's possible to abuse the system and input junk. There's an
addCheckedGlueLength(TextWidget*, ComboBox*) or somesuch (perhaps only in the
XForms frontend) which will give the user visible feedback that he's input junk
(colours the widgets red) and tells the button controller to disable OK,Apply
until the junk is fixed.

Regards,
Angus




Reply via email to