Fix qtopenapi generator version usage in generated code


The Qt OpenAPI generator previously used {{pluginVersion}} to define
the generator version in generated code. This value was derived from
the project's revision, which is set during the build process:
-Drevision=${QT_OPENAPI_GENERATOR_VERSION}

Instead of exposing {{pluginVersion}} to the templates through a C++
generator property, as was done in CppQt6ClientGenerator.java:
final String pluginVersion =
        CppQt6ClientGenerator.class.getPackage().getImplementationVersion();
additionalProperties.put("pluginVersion", pluginVersion);

the generated code can directly use QT_OPENAPI_GENERATOR_VERSION.
This removes the need to regenerate the data/* files used by
the qtopenapigen tests for every branch-specific version
(for example, 6.12.0, 6.13.0, etc.).

Previous implementation:
request.setHeader(QNetworkRequest::UserAgentHeader,
                  QString::fromUtf8("OpenAPI-Generator/6.13.0/cpp-qt"));

New implementation:
request.setHeader(QNetworkRequest::UserAgentHeader,
                  QString::fromUtf8("OpenAPI-Generator/%1/cpp-qt")
                      .arg(QT_OPENAPI_GENERATOR_VERSION));

Removed the implementation of {{pluginVersion}} that was made here:
f18ece14ac63a8a508321a2c8ce776a2d59cfa49

Task-number: QTBUG-144767
Pick-to: 6.12
Change-Id: I906ab4f038021a31dd56fad8d4722ff9ea2de5af
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commita2cb1af405b5b08a7acd1eec14bf3ff3481a3a5d
parenta0cc78be263b522fcb91e39579c3496bc0a92c36
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeMon, 15 Jun 2026 10:47:10 +0000