Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyhedron demo - fix DoubleEdit #7900

Merged

Conversation

janetournois
Copy link
Member

@janetournois janetournois commented Dec 1, 2023

Summary of Changes

With Qt6, scientific notation was used by default. This PR changes it to normal notation for doubles.

Note that I had to remove the call to QDoubleValidator::fixup(input); to make it work, otherwise I could not add a "." in the number I wanted to enter. I did not find any satisfying explanation for that, but it works...

Release Management

  • Affected package(s): Polyhedron demo
  • License and copyright ownership: unchanged

- let the user add as many digits as wanted (using -1 in setRange)
- use standard notation, not scientific (which was the default)
- comment QDoubleValidator::fixup that for some reason blocks the edition of the field
with this version the user can write with scientific notation or
standard notation, using . or ,

Note that when input is invalid, value() returns 0
@sloriot
Copy link
Member

sloriot commented Dec 7, 2023

Successfully tested in CGAL-6.0-Ic-122

@lrineau lrineau self-assigned this Dec 7, 2023
@lrineau lrineau added the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label Dec 7, 2023
@lrineau lrineau merged commit 1150d5a into CGAL:master Dec 11, 2023
9 checks passed
@lrineau lrineau removed the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label Dec 11, 2023
@lrineau lrineau deleted the Polyhedron_demo-fix_double_edit-jtournois branch December 11, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants