Fixes a crash in QDoubleSpinBox
commitc5acc6ee80d9f429fc8f4d9dd3cca51f3efdf6d5
authorJoão Abecasis <joao@abecasis.name>
Wed, 3 Jun 2009 10:04:56 +0000 (3 12:04 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 25 Sep 2009 17:06:20 +0000 (25 19:06 +0200)
tree404b8c206c7096ac7e1fb6638ee731b369e0ade7
parent101af7f0dc2eb8554a911ccb4c80ad0966db5780
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
src/gui/widgets/qspinbox.cpp
tests/auto/qdoublespinbox/tst_qdoublespinbox.cpp
tests/auto/qspinbox/tst_qspinbox.cpp