Fixes a crash in QDoubleSpinBox
commit62f23040e848e28991f34b70557eca23cd8cbbbf
authorJoão Abecasis <joao@abecasis.name>
Wed, 3 Jun 2009 10:04:56 +0000 (3 12:04 +0200)
committerJason McDonald <jason.mcdonald@nokia.com>
Mon, 28 Sep 2009 03:31:07 +0000 (28 13:31 +1000)
treee15af6327fc5236dc2b449e30c537be2ca6ff563
parent85ea25197d4aa9b7952fb30f5ea56979015f6f06
Fixes a crash in QDoubleSpinBox

Removing dubious intermediate detection code that also had a buffer
overflow.  The results were inconsistent and not dependable on.
Processing was inefficient and end value to user experience dubious.

Test cases that abused the former behaviour were changed to consider
input in an Intermediate where it was previously considered Invalid.

With this change, user input will mostly be considered in an
intermediate state, until it is effectively validated.

Task-number: 255019
Reviewed-by: Anders Bakken
(cherry picked from commit c5acc6ee80d9f429fc8f4d9dd3cca51f3efdf6d5)
src/gui/widgets/qspinbox.cpp
tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp
tests/auto/qspinbox/tst_qspinbox.cpp