qt5base-lts/tests/auto
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
..
bic/data Add binary compatibility files for qtbase 5.14 branch 2019-12-20 10:41:11 +02:00
cmake CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
concurrent Disable warnings for the deprecated QLinkedList 2020-03-06 09:50:35 +01:00
corelib qeasingcurve/tst_qeasingcurve: Fix for MinGW 8.1 x86 2020-03-20 07:56:53 +01:00
dbus Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
gui Add test for conversion of "large" images 2020-03-11 18:45:46 +00:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-18 11:44:49 +01:00
opengl Add default arguments to QPainterPath methods using transform 2020-03-06 21:09:48 +01:00
other Add default arguments to QPainterPath methods using transform 2020-03-06 21:09:48 +01:00
printsupport Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql QMySQL: return QVariant::ByteArray for POINT column 2020-03-15 23:00:41 +01:00
testlib Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
tools Use Qt::SplitBehavior in preference to QString::SplitBehavior 2020-02-28 15:37:11 +01:00
widgets QDateTimeEdit: with keyboardTracking off, allow values outside the range 2020-03-20 22:18:00 +01:00
xml Merge remote-tracking branch 'origin/5.14' into 5.15 2020-03-11 11:27:49 +01:00
auto.pro
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00