summaryrefslogtreecommitdiff
path: root/examples/linguist
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2023-04-11 11:02:07 +0000
committerTopi Reinio <topi.reinio@qt.io>2023-04-11 13:55:28 +0000
commita3379894bba777d4dcc8dd6ced5149533bb127ed (patch)
treeeaa2ddfd80d2a642eabb71493a4cc1afcd7ac114 /examples/linguist
parentcf4dc5e2267d99a3faf434287522d994ac946230 (diff)
downloadqttools-a3379894bba777d4dcc8dd6ced5149533bb127ed.tar.gz
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: I28dfd6d5540dfe540bab942f9e9a93e9c239e206 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/linguist')
-rw-r--r--examples/linguist/doc/src/arrowpad.qdoc2
-rw-r--r--examples/linguist/doc/src/hellotr.qdoc2
-rw-r--r--examples/linguist/doc/src/i18n.qdoc2
-rw-r--r--examples/linguist/doc/src/trollprint.qdoc2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/linguist/doc/src/arrowpad.qdoc b/examples/linguist/doc/src/arrowpad.qdoc
index 28704999d..08d2aac5e 100644
--- a/examples/linguist/doc/src/arrowpad.qdoc
+++ b/examples/linguist/doc/src/arrowpad.qdoc
@@ -4,7 +4,7 @@
/*!
\example arrowpad
\ingroup examples-linguist
- \meta category {Internationalization}
+ \examplecategory {Internationalization}
\title Arrow Pad Example
diff --git a/examples/linguist/doc/src/hellotr.qdoc b/examples/linguist/doc/src/hellotr.qdoc
index f9dfc8fbb..6c97398be 100644
--- a/examples/linguist/doc/src/hellotr.qdoc
+++ b/examples/linguist/doc/src/hellotr.qdoc
@@ -4,7 +4,7 @@
/*!
\example hellotr
\ingroup examples-linguist
- \meta category {Internationalization}
+ \examplecategory {Internationalization}
\title Hello tr() Example
diff --git a/examples/linguist/doc/src/i18n.qdoc b/examples/linguist/doc/src/i18n.qdoc
index b82777839..16adf04b2 100644
--- a/examples/linguist/doc/src/i18n.qdoc
+++ b/examples/linguist/doc/src/i18n.qdoc
@@ -4,7 +4,7 @@
/*!
\example i18n
\ingroup examples-linguist
- \meta category {Internationalization}
+ \examplecategory {Internationalization}
\title I18N Example
diff --git a/examples/linguist/doc/src/trollprint.qdoc b/examples/linguist/doc/src/trollprint.qdoc
index 8eda2aba6..fc664594a 100644
--- a/examples/linguist/doc/src/trollprint.qdoc
+++ b/examples/linguist/doc/src/trollprint.qdoc
@@ -4,7 +4,7 @@
/*!
\example trollprint
\ingroup examples-linguist
- \meta category {Internationalization}
+ \examplecategory {Internationalization}
\title Troll Print Example