DoubleValidatorRelaxed is similar to `IntValidatorRelaxed`, but works with values of `double` type.
| 450 | |
| 451 | |
| 452 | class DoubleValidatorRelaxed(DoubleValidatorStrict): |
| 453 | """ |
| 454 | DoubleValidatorRelaxed is similar to `IntValidatorRelaxed`, but works with |
| 455 | values of `double` type. |
| 456 | """ |
| 457 | |
| 458 | def validate(self, *args, **kwargs): |
| 459 | result = super().validate(*args, **kwargs) |
| 460 | # Replace QDoubleValidator.Invalid with QIntValidator.Intermediate |
| 461 | if result[0] == QDoubleValidator.Invalid: |
| 462 | result = (QDoubleValidator.Intermediate, result[1], result[2]) |
| 463 | return result |
| 464 | |
| 465 | |
| 466 | class RangeManager(QWidget): |
no outgoing calls