qtgrpc/examples/grpc/chat/client
Alexey Edelev 4b778a70d0 Avoid generating QList aliases for the protobuf messages
Generating the aliases for protobuf QList types leads to the name
clashing when users want ot introduce messages that have name
consisting of previously defined message name and Repeated suffix,
e.g.:
  message MyMessage {
  }
  message MyMessageRepeated {
  }

We shouldn't prohibit the above scheme in our generators and generate
the respective messages correctly. The only possible solution -
complete removal of the protobuf messages QList aliases.

Generator still generates the aliases guarded by the
QT_USE_PROTOBUF_LIST_ALIASES macro. The macro is enabled by
Qt::Protobuf when building using CMake, but can be disabled at any
time by setting QT_USE_PROTOBUF_LIST_ALIASES property on protobuf
target to avoid name clashing.

[ChangeLog][Protobuf] qtprotobufgen doesn't generate protobuf message
QList aliases. All usages of aliases should be replace by respective
QList types. Aliases are still generated and are guarded by the
QT_USE_PROTOBUF_LIST_ALIASES macro in the generated code. The macro
is enabled by default and can be disabled using
QT_USE_PROTOBUF_LIST_ALIASES target property.

Fixes: QTBUG-129652
Pick-to: 6.8 6.9
Change-Id: I026755b36985eef01a6851156d9c9cfff141d247
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
2024-12-16 09:57:33 +01:00
..
CMakeLists.txt CMake: Make grpc chat example build as external project with qemu CI 2024-08-19 21:50:15 +02:00
ChatInputField.qml Adjust the licensing across the repo 2024-01-12 09:54:57 +01:00
ChatView.qml Adjust the licensing across the repo 2024-01-12 09:54:57 +01:00
Main.qml Adjust the licensing across the repo 2024-01-12 09:54:57 +01:00
chatmessagemodel.cpp Avoid generating QList aliases for the protobuf messages 2024-12-16 09:57:33 +01:00
chatmessagemodel.h Avoid generating QList aliases for the protobuf messages 2024-12-16 09:57:33 +01:00
main.cpp Correct license for example files 2024-03-15 14:28:25 +01:00
qt_logo_green_64x64px.png Backport the simple chat example 2023-02-23 18:29:39 +01:00
simplechatengine.cpp Prefer the usage of SingleShotConnection 2024-09-20 15:48:06 +02:00
simplechatengine.h Generate protobuf enum as enum class 2024-08-28 14:47:48 +02:00