protobufqml: use unique QML URIs for generated QML test modules


The enums, syntax and messagelists QML tests each build a standalone QML
module from a dedicated *_gen target via qt_add_protobuf(... QML). All
three derive the module URI from the proto package they share
("qtprotobufnamespace.tests"), resulting in all three registering with
the same URI.

This is harmless while each test runs from its own build directory or
separate package. OpenHarmony instead deploys all autotests in a single
bundle, and we plan to deploy their generated QML modules into one
shared import directory. The three modules would then map to the same
path and overwrite one another's qmldir, so at most one test's types
would survive and the others would fail to load their QML.

Give each generated module its own URI via the QML_URI parameter:
qtprotobufnamespace.tests.enumtypes, .syntax and .repeated for the
enums, syntax and messagelists tests respectively. Update the matching
QML imports. The proto package, and hence the generated C++ types, is
unchanged. Only the QML module URI differs.

Task-number: QTBUG-147585
Pick-to: 6.12
Change-Id: I6f34076ee6adf9fb753e0f669f9ece4954cb4b6f
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
commitf5b0c9016861f034b2901645e7199da8898309d7
parent1d25806d4b8f3f0038c2f2e582542df40c3d9344
authorAleksander Wawrzyniak <aleksander.wawrzyniak@qt.io>
committerAleksander Wawrzyniak <aleksander.wawrzyniak@qt.io>
commit timeFri, 3 Jul 2026 07:59:39 +0000