Juergen Spitzmueller wrote:
> P.S.: Angus, why did you initialize the validator in
> QExternal->widthED to double? Shouldn't a user be able to enter
> "3.5cm" into the line edit widget even *if* "Scale" is still
> selected in the combo?

Sheesh! I dunno. I guess.

Incidentally, Juergen, have you seen what the XForms frontend does? 
If a user inputs an invalid length, then it is highlighted in red and 
the Ok,Accept buttons are disabled. See xforms/checkedwidgets.[Ch]. I 
did something similar for the Qt External dialog. See the build() 
function and

        addCheckedLineEdit(bcview(), 
                           dialog_->angleED, dialog_->angleLA);

It would be pretty trivial for you to add this functionality to the 
other dialogs too. You'd just need to write addCheckedLyXLength and 
addCheckedGlueLength.

What do you think?

-- 
Angus

Reply via email to