qtbase/examples/corelib/serialization
Edward Welbourne 1022b0d111 Eliminate duplicate overrides of Converter methods in example
The Out-only converters shouldn't need to implement loadFile(), as it
shouldn't be called - a converter is not used for input unless it says
it supports input. At the same time, provide the "ground state"
implementations for optionsHelp(), outputOptions() and probeFile() to
save the trivial implementations the need to duplicate one another.

In the process, make the handling of loadFile()'s outputConverter more
consistent among those that do implement it.  Always set
outputConverter if it's initially null (the caller does assert this).

Pick-to: 6.6 6.5
Task-number: QTBUG-111228
Change-Id: I856d12c791d1f8e0accdb7dd1412d493117b2302
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-11-01 21:28:55 +01:00
..
cbordump corelib/serialization examples: clang-tidy and coding style clean-up 2023-09-08 18:17:37 +02:00
convert Eliminate duplicate overrides of Converter methods in example 2023-11-01 21:28:55 +01:00
savegame Rename the JSON Save Game Example to Saving a Game to File 2023-10-20 11:19:48 +02:00
streambookmarks corelib/serialization examples: clang-tidy and coding style clean-up 2023-09-08 18:17:37 +02:00
CMakeLists.txt Exclude some examples from Android build 2023-08-28 16:00:45 +03:00
serialization.pro Move RSS listing example to networking 2023-06-14 11:57:31 +02:00