qt6-bb10/tests/auto/corelib
Arno Rehn 7a7051b58f QMetaType: Support custom unary converters with optional<To> return type
To indicate success of a conversion, the public API has previously only
supported registering member functions of the form To (From::*)(bool *).
When adding custom converters for types that cannot be modified, this is
usually not a possibility.
As an alternative, this patch adds support for std::optional in the
UnaryFunction overload of QMetaType::registerConverter. If the returned
optional has no value, the conversion is considered failed.

Task-number: QTBUG-92902
Change-Id: Ibac52d2cb9b5a2457081b4bebb0def1f03e3c55d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-09-27 20:59:21 +02:00
..
animation Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
global QWinRegistryKey: refactor 2022-09-14 09:31:41 +08:00
io QDebug: Support standard strings and string views directly 2022-09-27 14:12:11 +03:00
itemmodels QtBase tests: remove QT_DISABLE_DEPRECATED_UP_TO defines 2022-08-24 22:08:49 +02:00
kernel QMetaType: Support custom unary converters with optional<To> return type 2022-09-27 20:59:21 +02:00
mimetypes Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
platform Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
plugin Move QMacAutoReleasePool from qglobal.h to qcore_mac_p.h 2022-09-01 13:26:30 +02:00
serialization QTextStream: Fix logical error in setEncoding 2022-09-07 01:09:31 +02:00
text Reduce foldCasing of the needle in Boyer-Moore QString searches 2022-09-22 18:05:44 +02:00
thread QFuture: fix handling of cancelled continuation chain 2022-09-21 01:18:31 +02:00
time Tidy up tst_QTimeZone 2022-09-14 17:46:39 +02:00
tools tst_QHash: Fix outdated rehash test 2022-09-22 17:34:51 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00