qt5base-lts/tests/auto/widgets
Volker Hilsheimer 580e9eedf7 QDateTimeEdit: with keyboardTracking off, allow values outside the range
QDateTimeEdit very aggressively prevents user input that would result in
values that are outside the dateTimeRange. While keyboardTracking is on
this makes sense, as otherwise the dateTimeChanged signal would be
emitted after each section, with a value that is outside the range.

However, this prevented users from entering a date that is allowed, but
where sections of the date are above or below the respective section in
the maximum or minimum value.

If keyboardTracking is off, QDateTimeEdit only emits the dateTimeChanged
signal at the end of editing, when focus is lost or the return key is
pressed, and then it enforces that the value is within the range anyway.
This change makes the parser ignore the range during editing if
keyboardTracking is off, thus allowing the user to enter a date where
temporary values are outside the range.

The test makes sure that we don't get signals emitted with out-of-range
values, testing both with and without keyboard tracking.

Change-Id: I00fb9f1b328a3477163f890c4618b40878657816
Fixes: QTBUG-65
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-03-20 22:18:00 +01:00
..
dialogs Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-18 11:44:49 +01:00
effects tst_qgraphicseffect: Wait for exposed instead of active 2019-10-15 20:39:32 +02:00
graphicsview Add default arguments to QPainterPath methods using transform 2020-03-06 21:09:48 +01:00
itemviews Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-18 11:44:49 +01:00
kernel Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-11 11:27:49 +01:00
styles Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-15 01:00:39 +01:00
util Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
widgets QDateTimeEdit: with keyboardTracking off, allow values outside the range 2020-03-20 22:18:00 +01:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00