TSpinEdit doesn't work in the qt5 widgetset if MinValue=MaxValue
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
In a TSpinEdit, if you set MinValue=MaxValue the possible value should be unlimited, however with the qt5 widgetset the spin doesn't work.
That's because in method TQtWSCustomFloatSpinEdit.InternalUpdateControl in such a case it sets the minimum and maximum values to MaxDouble, while the underlying widget only accepts an integer (hence MaxInt).
I'm attaching a patch to fix the issue.
Steps to reproduce:
Compile the attached project with the qt5 widgetset (it's actually set in the project options).
When you run the program you cannot change the value of the spinedit.
Mantis conversion info:
- Mantis ID: 33850
- Version: 2.3 (SVN)
- Fixed in revision: r58593 (#386cdbc0)