Actions
Bug #1753
closed
СS
MV
WDoubleValidator does not show correct messages when value is invalid.
Bug #1753:
WDoubleValidator 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).
regards,
Stoycho
Files
KD Updated by Koen Deforche over 13 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
MV Updated by Michael Vilsker over 13 years ago
- Status changed from InProgress to Resolved
KD Updated by Koen Deforche over 13 years ago
- Status changed from Resolved to Closed
Actions