From b519fe95fdb2dde80b37d5ddc42234e7ed9f6d26 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 11 Apr 2023 11:08:09 +0000 Subject: [PATCH] Doc: Use the \examplecategory macro to tag examples The '\meta category' command was used for tagging examples with a specific category, used in Qt Creators Welcome mode. As we want to also generate lists of examples belonging to a category elsewhere in the documentation, replace the command with a macro that expands to the original \meta command and also adds the example to a group using the \ingroup command. This way, the category names can be used as arguments to the \generatelist or \annotatedlist commands. Pick-to: 6.5 Task-number: QTBUG-112731 Change-Id: I38b38c524b35ad4c0049f2978f5fc65d03c6a1cd Reviewed-by: Paul Wicking --- examples/grpc/doc/src/chat.qdoc | 2 +- examples/grpc/doc/src/magic8ball.qdoc | 2 +- examples/protobuf/sensors/doc/sensors.qdoc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/grpc/doc/src/chat.qdoc b/examples/grpc/doc/src/chat.qdoc index dbac0a65..b5ec791b 100644 --- a/examples/grpc/doc/src/chat.qdoc +++ b/examples/grpc/doc/src/chat.qdoc @@ -4,7 +4,7 @@ /*! \example chat \ingroup qtgrpc-examples - \meta category {Networking} + \examplecategory {Networking} \meta tag {network,protobuf,grpc,serialization,tcp} \title Chat diff --git a/examples/grpc/doc/src/magic8ball.qdoc b/examples/grpc/doc/src/magic8ball.qdoc index 0383e767..90ae8022 100644 --- a/examples/grpc/doc/src/magic8ball.qdoc +++ b/examples/grpc/doc/src/magic8ball.qdoc @@ -4,7 +4,7 @@ /*! \example magic8ball \ingroup qtgrpc-examples - \meta category {Networking} + \examplecategory {Networking} \meta tag {network,protobuf,grpc} \title Magic 8 Ball diff --git a/examples/protobuf/sensors/doc/sensors.qdoc b/examples/protobuf/sensors/doc/sensors.qdoc index 56769103..498fd7d0 100644 --- a/examples/protobuf/sensors/doc/sensors.qdoc +++ b/examples/protobuf/sensors/doc/sensors.qdoc @@ -5,7 +5,7 @@ \example sensors \ingroup qtprotobuf-examples \meta tag {network,protobuf,serialization,udp} - \meta category {Networking} + \examplecategory {Networking} \title Sensors \brief The Sensors example shows how two applications can communicate by