Introduce SerializationOptions struct


The helper functions for serialization took too many parameters,
most of them being either QString or bool.
As a result, it was very easy to pass the arguments in the wrong
order.

This patch introduces a new enum for boolean options, and a new
struct to hold all serialization options. The struct is now
populated in a single place and then passed to all serialization
methods.

Task-number: QTBUG-140222
Change-Id: I64690202979a0206fea9ea1d05c9e345168869ce
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commit0107db2ff906f8a32d77286d8f2127dc35dcd6cb
parentb73b4c4c961b5bb2d3be9ddce8b3e4ccac05c7f1
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 26 Sep 2025 17:42:20 +0200