From e2fad3afa41770977390884e4a30dc99e6f53fe1 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 17 Feb 2020 16:59:34 +0100 Subject: doc: Fix qdoc warnings in aggregation Change-Id: Ia9a2e6dcdb8dc82ae600b974e396fd8ac3a42678 Reviewed-by: Leena Miettinen --- src/libs/aggregation/aggregate.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/libs/aggregation') diff --git a/src/libs/aggregation/aggregate.cpp b/src/libs/aggregation/aggregate.cpp index 3c2ea217b13..a4cb2dd436d 100644 --- a/src/libs/aggregation/aggregate.cpp +++ b/src/libs/aggregation/aggregate.cpp @@ -104,7 +104,7 @@ */ /*! - \fn T *Aggregate::component() + \fn template 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,26 +113,16 @@ */ /*! - \fn QList Aggregate::components() + \fn template QList Aggregation::Aggregate::components() Template function that returns all components with the given type, if there are any. \sa Aggregate::component(), add() */ -/*! - \fn T *Aggregation::query(Aggregate *obj) - \internal -*/ - -/*! - \fn QList Aggregation::query_all(Aggregate *obj) - \internal -*/ - /*! \relates Aggregation::Aggregate - \fn T *Aggregation::query(QObject *obj) + \fn template T *Aggregation::query(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 Aggregation::query_all(QObject *obj) + \fn template QList Aggregation::query_all(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. -- cgit v1.2.3