qt6-bb10/tests/auto/corelib
Ivan Solovev 1d8dd9a02c Track progress range in QFutureInterface::setProgressValue
Previously QFutureInterface::setProgressValue was silently ignoring
the progress range and allowed to set any progress value.
Also no checks were performed in QFutureInterface::setProgressRange,
which allowed the user to set minimum > maximum.

Add checking of the current progress range, when settings the
progress value.
Add checks for minimum and maximum values while setting the progress
range.
The implementation of the checks is mostly based on the logic
that is used in QProgressBar.
- If maximum is smaller than minimum, minimum becomes the only legal
value.
- If the current progress value falls outside the new range, the
progress value is set to be minimum.
- If both progressMinimum() and progressMaximum() return 0, the
current progress range is considered to be unused, and any progress
value can be set.
- When setting the value using setProgressValue(), if the value falls
out of the progress range, the method has no effect.

Task-number: QTBUG-84729
Change-Id: I29cf4f94b8e98e1af30dd46fbdba39c421cf66bf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-11-17 16:16:31 +01:00
..
animation Remove timeStep parameter from QAnimationDrive::advanceAnimation 2020-10-13 08:44:42 +02:00
global Extend tests for QLogging 2020-11-17 16:16:10 +01:00
io QFileInfo: mark constructors as explicit 2020-11-15 18:30:16 +01:00
itemmodels QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
kernel QSharedMemory: do not abuse QChar in a test 2020-11-08 02:13:22 +00:00
mimetypes CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
plugin Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
serialization Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00
text QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
thread Track progress range in QFutureInterface::setProgressValue 2020-11-17 16:16:31 +01:00
time Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
tools Move the iterator from QTypedArrayData to QList 2020-11-17 11:47:53 +01:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00