Actions
Bug #1753
closedWDoubleValidator does not show correct messages when value is invalid.
Start date:
03/19/2013
Due date:
% Done:
0%
Estimated time:
Description
Hey,
the behaviour described in the documentation seems not to work entirely correct:
Depending on whether bottom() and top() are real bounds, the default message is "The number must be between {1} and {2}" or "The number must be smaller than {2}".
I tested it with this code and it uses the first default message despite I didn't set a lower bound (a bottom value), see the screenshot:
WLineEdit *input = new WLineEdit();
WDoubleValidator *validator = new WDoubleValidator(input);
validator->setTop(0);
input->setValidator(validator);
In the opposite case the right messages are shown, i.e., when the bottom is set and the top not (see second screanshot).
validator->setBottom(0);
regards,
Stoycho
Files
Updated by Koen Deforche over 11 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
- Target version set to 3.3.0
Michael,
Can you take a look at this, is probably a typo in WDoubleValidator ?
Can you also check similar code in WIntValidator and WDateValidator ?
Regards,
koen
Updated by Michael Vilsker over 11 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed
Actions