TFloatSpinEdit on Linux QT does not fire OnChange when Text is changed (unless Value is changed by it)
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
On Windows and GTK2 TFloatSpinEdit fires OnChange whenevr the Text is changed.
This is as it should be, since the control derives from TCustomEdit.
On QT however, OnChange is only fired when altering the Text also alters the Value:
Change text from 50.0 to 50: no OnChange fires.
Change text from 50 yo 5: OnChange fires.
Steps to reproduce:
Unzip attached sample project.
Set buildmode to QT
Buid and run
Set cursor at end of text, press BackSpace until there is only one digit ("5") left.
Expected behaviour:
OnChange: Value = 50.00, Text = "50.0"
OnChange: Value = 50.00, Text = "50."
OnChange: Value = 50.00, Text = "50"
OnChange: Value = 5.00, Text = "5"
Observed behaviour:
Only one OnChange is fired:
OnChange: Value = 5.00, Text = "5"
Mantis conversion info:
- Mantis ID: 29343
- OS: Linux
- OS Build: Fedora Core 18
- Platform: i386
- Version: 1.7 (SVN)
- Fixed in version: 1.6
- Fixed in revision: r51302 (#07d5c8be)
- Target version: 1.6