qt5base-lts/examples/corelib/tools
Rym Bouabid b956fec7ee Remove Custom Type Example and Custom Type Sending Example
The whole Q_DECLARE_METATYPE part is superfluous in these two examples,
as QVariant works with any type as long as it is copy-constructible.
And QVariant will call the equivalent of qRegisterMetaType, so that
doesn't need to happen, either.
Showing how to integrate the type with qDebug is fine in theory, but
also a repetition of content that can be found in other places.

Given that there isn't much else being shown in these two examples, it's
better to remove them from examples and move them to manual tests.

Some parts of "Custom Type Example" were used as snippets in other
documentations under qtbase/src/corelib. So, they were added in
customtypeexample.cpp file in the snippets folder.

Fixes: QTBUG-117001
Pick-to: 6.6 6.5
Change-Id: I45b16338912e3f7394cbb5169642bd31af32d5e1
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2023-10-04 21:04:45 +02:00
..
contiguouscache Contiguous cache example: minor cleanup 2023-06-30 12:55:01 +02:00
doc/src Remove Custom Type Example and Custom Type Sending Example 2023-10-04 21:04:45 +02:00
CMakeLists.txt Remove Custom Type Example and Custom Type Sending Example 2023-10-04 21:04:45 +02:00
README Move Qt Core examples under a common subdirectory 2014-10-17 14:57:13 +02:00
tools.pro Remove Custom Type Example and Custom Type Sending Example 2023-10-04 21:04:45 +02:00

Qt is equipped with a range of capable tool classes, from containers and
iterators to classes for string handling and manipulation.

Other classes provide application infrastructure support, handling plugin
loading and managing configuration files.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.