silx icon indicating copy to clipboard operation
silx copied to clipboard

Added extra functionality to FloatEdit

Open vallsv opened this issue 2 years ago • 1 comments

Closes #3888

This PR mostly provides extra validators that i have designed during the years.

It allows configurable behaviours like:

  • Empty input as None
  • Fast edition of the dot . from the input
  • Included/excluded float min/max boundaries
  • Basic support for quantities
  • Plus a bit more accurate value will is it not edited by the user

This PR also add some tests to the FloatEdit.

Changelog:

  • Added support to custom validators to FloatEdit widget
  • Added extra validators to share common behaviours

vallsv avatar Jun 26 '23 17:06 vallsv

Tested manually with pyside6-6.5.1.1, sounds like it's ok

vallsv avatar Jun 27 '23 11:06 vallsv