qt5base-lts/examples/corelib/serialization/convert
Lars Knoll ed8acbeb7c Automatically register data/debug stream operations in QMetaType
And remove the old manual registration code for those operators.

Add some special handling for long/ulong, as these types could be
streamed as a QVariant so far, but are not directly streamable
through QDataStream.

[ChangeLog][QtCore][QMetaType] The QMetaType::registerStreamOperators()
and QMetaType::registerDebugStreamOperator() methods have been
removed. The streaming operators for a type are now automatically
registered together with the type registration.  This implies that the
operators should be visible wherever the type is visible and being used.

[ChangeLog][Behavior Incompatible Changes] Because the QDataStream and
QDebug serialization operators are automatically registered with
QMetaType, the declarations of those functions must be present at any
point where the type is used with QMetaType and QVariant.

Change-Id: I4a0732651b20319af4a8397ff90b848ca4580d99
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2020-08-24 00:17:03 +02:00
..
cborconverter.cpp Automatically register data/debug stream operations in QMetaType 2020-08-24 00:17:03 +02:00
cborconverter.h Examples: add an example that converts between different file formats 2018-07-04 03:03:47 +00:00
CMakeLists.txt CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
convert.pro Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
converter.h Use QList instead of QVector in examples 2020-06-23 14:01:11 +02:00
datastreamconverter.cpp Automatically register data/debug stream operations in QMetaType 2020-08-24 00:17:03 +02:00
datastreamconverter.h Examples: add an example that converts between different file formats 2018-07-04 03:03:47 +00:00
jsonconverter.cpp Deprecate QJsonDocument methods for converting to/from JSON binary 2020-01-09 13:52:25 +01:00
jsonconverter.h Deprecate QJsonDocument methods for converting to/from JSON binary 2020-01-09 13:52:25 +01:00
main.cpp Use QList instead of QVector in examples 2020-06-23 14:01:11 +02:00
nullconverter.cpp Examples: add an example that converts between different file formats 2018-07-04 03:03:47 +00:00
nullconverter.h Examples: add an example that converts between different file formats 2018-07-04 03:03:47 +00:00
textconverter.cpp Replace most use of QVariant::type and occurrences of QVariant::Type 2020-01-23 16:46:51 +01:00
textconverter.h Examples: add an example that converts between different file formats 2018-07-04 03:03:47 +00:00
xmlconverter.cpp Port the QXmlStream API from QStringRef to QStringView 2020-08-19 19:48:03 +02:00
xmlconverter.h Examples: add an example that converts between different file formats 2018-07-04 03:03:47 +00:00