qt5base-lts/tests/auto/gui
Ahmad Samir f107773742 QValidator: return State::Intermediate for certain trailing characters
E.g. a group separator, a -/+ sign, or 'e' (exponent). Input ending with
one of these characters now returns Intermediate, as it can become
Acceptable if the user types more characters.

Remove a check from initialResultCheck(), as it's now covered by
QLocaleData::validateChars() checking that the last character in the
buffer is -/+, this works the same if buffer's size is 1.

Extended unittests based on the linked bug report; the other cases for
"last" are already covered by existing unittests.

Task-number: QTBUG-111371
Change-Id: I9b6979c29f07a5f57b040004cd3dbf4e27147c21
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-07-24 00:04:47 +02:00
..
image QIcon: use fallback also with platform icon engine 2023-07-21 09:22:46 +02:00
itemmodels CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
kernel Android: Fix for checking clipboard text mime type 2023-07-12 00:53:58 +02:00
math3d CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
painting CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
platform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopengl CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopenglconfig CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qvulkan CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
rhi CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
text CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
util QValidator: return State::Intermediate for certain trailing characters 2023-07-24 00:04:47 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00