superqt icon indicating copy to clipboard operation
superqt copied to clipboard

Use scientific notation for big values inl labeled slider

Open Czaki opened this issue 2 years ago • 3 comments

Closes #224

Use QLabel instead of QDoubleSpinBox for custom representation of big/small values.

Czaki avatar Dec 15 '23 16:12 Czaki

Codecov Report

Attention: Patch coverage is 85.71429% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 87.18%. Comparing base (0396d46) to head (5d87bc5).

Files Patch % Lines
src/superqt/sliders/_labeled.py 85.71% 8 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #226      +/-   ##
==========================================
- Coverage   87.30%   87.18%   -0.13%     
==========================================
  Files          46       46              
  Lines        3332     3371      +39     
==========================================
+ Hits         2909     2939      +30     
- Misses        423      432       +9     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 15 '23 16:12 codecov[bot]

basic idea looks good. lemme know when ready for a full review. How do you plan to manage when it switches into scientific notation?

tlambert03 avatar Dec 16 '23 19:12 tlambert03

Currently, it depends on str(float), as for big values, on my machine it uses scientific notation. I need to check how universal it is.

Czaki avatar Dec 17 '23 12:12 Czaki