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>
| commit | 0107db2ff906f8a32d77286d8f2127dc35dcd6cb |
| parent | b73b4c4c961b5bb2d3be9ddce8b3e4ccac05c7f1 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 26 Sep 2025 17:42:20 +0200 |
- M src/main/resources/cpp-qt6-client/api-base-body.mustache
- M src/main/resources/cpp-qt6-client/api-base-header.mustache
- M src/main/resources/cpp-qt6-client/api-body.mustache
- M tests/auto/colorpalette/client/client/QtOAIBaseApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIBaseApi.h
- M tests/auto/colorpalette/client/client/QtOAIColorsApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIDefaultApi.cpp
- M tests/auto/colorpalette/client/client/QtOAIUsersApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIBaseApi.h
- M tests/auto/colorpalette/qmlclient/client/OAIColorsApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIDefaultApi.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIUsersApi.cpp
- M tests/auto/mediatype/client/client/QtOAIBaseApi.cpp
- M tests/auto/mediatype/client/client/QtOAIBaseApi.h
- M tests/auto/openapi2.0/client/client/QtOAIBaseApi.cpp
- M tests/auto/openapi2.0/client/client/QtOAIBaseApi.h
- M tests/auto/openapi2.0/client/client/QtOAIFakeApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAIBaseApi.cpp
- M tests/auto/operation-parameters/client/client/QtOAIBaseApi.h
- M tests/auto/operation-parameters/client/client/QtOAITestApi.cpp
- M tests/auto/petstore/client/client/QtOAIBaseApi.cpp
- M tests/auto/petstore/client/client/QtOAIBaseApi.h
- M tests/auto/petstore/client/client/QtOAIPetApi.cpp
- M tests/auto/petstore/client/client/QtOAIStoreApi.cpp
- M tests/auto/petstore/client/client/QtOAIUserApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIBaseApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIBaseApi.h
- M tests/auto/petstore/qmlclient/client/OAIPetApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIStoreApi.cpp
- M tests/auto/petstore/qmlclient/client/OAIUserApi.cpp