aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/aggregation
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-02-17 16:59:34 +0100
committerEike Ziller <eike.ziller@qt.io>2020-02-18 10:02:48 +0000
commite2fad3afa41770977390884e4a30dc99e6f53fe1 (patch)
treea7d714af2cdfa876cb6eaa1488305845953a8acb /src/libs/aggregation
parenta854e0daa84af04b319939114fa0b3e56df0685f (diff)
doc: Fix qdoc warnings in aggregation
Change-Id: Ia9a2e6dcdb8dc82ae600b974e396fd8ac3a42678 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/libs/aggregation')
-rw-r--r--src/libs/aggregation/aggregate.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/libs/aggregation/aggregate.cpp b/src/libs/aggregation/aggregate.cpp
index 3c2ea217b1..a4cb2dd436 100644
--- a/src/libs/aggregation/aggregate.cpp
+++ b/src/libs/aggregation/aggregate.cpp
@@ -104,7 +104,7 @@
*/
/*!
- \fn T *Aggregate::component()
+ \fn template <typename T> T *Aggregation::Aggregate::component()
Template function that returns the component with the given type, if there is one.
If there are multiple components with that type, a random one is returned.
@@ -113,7 +113,7 @@
*/
/*!
- \fn QList<T *> Aggregate::components()
+ \fn template <typename T> QList<T *> Aggregation::Aggregate::components()
Template function that returns all components with the given type, if there are any.
@@ -121,18 +121,8 @@
*/
/*!
- \fn T *Aggregation::query<T *>(Aggregate *obj)
- \internal
-*/
-
-/*!
- \fn QList<T *> Aggregation::query_all<T *>(Aggregate *obj)
- \internal
-*/
-
-/*!
\relates Aggregation::Aggregate
- \fn T *Aggregation::query<T *>(QObject *obj)
+ \fn template <typename T> T *Aggregation::query<T *>(QObject *obj)
Performs a dynamic cast that is aware of a possible aggregate that \a obj
might belong to. If \a obj itself is of the requested type, it is simply cast
@@ -144,7 +134,7 @@
/*!
\relates Aggregation::Aggregate
- \fn QList<T *> Aggregation::query_all<T *>(QObject *obj)
+ \fn template <typename T> QList<T *> Aggregation::query_all<T *>(QObject *obj)
If \a obj belongs to an aggregate, all components that can be cast to the given
type are returned. Otherwise, \a obj is returned if it is of the requested type.