qt5base-lts/tests/auto/corelib
Sona Kurazyan 3be72253a6 Fix QFuture continuations/handlers to work with move-only callables
std::function, which is used to store the type-erased continuation
lambdas, requires the passed callable to be copy-constructible. This
makes impossible to use move-only callables with continuations/handlers.
In particular, it makes impossible passing lambdas that are capturing
move-only objects. The workaround is to store the continuation lambda
inside a wrapper for the callable, which stores the move-only lambda in
a QSharedPtr and can be stored in std::function, since it's copyable.

Pick-to: 6.2
Fixes: QTBUG-98493
Change-Id: I8b7a22fcf68dc132b3c533216a7a1665e9f9fb0a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-12-01 01:58:18 +01:00
..
animation Include qproperty.h where needed 2021-11-04 21:45:02 +01:00
global Do not include qloggingcategory.h in public headers 2021-11-16 17:26:04 +00:00
io QDir: Add support for setting directory permissions to mkdir() 2021-11-26 03:39:33 +01:00
itemmodels Shorten target name for qsortfilterproxymodel auto tests 2021-11-29 08:08:21 +01:00
kernel QObject: Q_ASSERT the object type before calling a PMF 2021-11-27 21:38:22 -08:00
mimetypes Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QNX: check and use elf.h from alternative location 2021-11-30 14:37:52 +02:00
serialization Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
text QString::arg: deprecate use of arbitrary Unicode digits as replacements 2021-11-30 19:33:34 +02:00
thread Fix QFuture continuations/handlers to work with move-only callables 2021-12-01 01:58:18 +01:00
time Skip QTimeZone::checkOffset() if there are no valid zones to test 2021-11-26 02:14:52 +01:00
tools QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH: use unqualified qHash() lookup 2021-11-29 18:55:10 +00:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00