Doc: Fix template information for QMetaEnum::fromType
When QDoc parses a project, it parses the source code to extract the user-provided documentation and perform sanity checkings based on the code itself on it. When QDoc parses an "\fn" command as part of this process, it tries to understand, based on its intermediate representation built on the information extracted from the code-base, which "documentable element" the "\fn" refers to. When QDoc performs this "matching" process, it takes into consideration only a certain amount of information. For example, no checking is performed over the template declaration of a callable. Due to some upcoming documentation, where two callables are indistinguishable to the current process, as they differ only in their template declaration, QDoc will start to take into consideration the template declaration of a callable when matching. This implies that an "\fn" command should now provide information parity, with regards to template declaration for callables, with the code-base so that QDoc can perform the match correctly. The documentation for `QMetaEnum::fromType` is not in sync with the intended target template declaration. Hence, add the missing information to the relevant "\fn" commands. Task-number: QTBUG-118080 Change-Id: I9160c1d76c0078f599d028c39fb3db17a34c3dd7 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
21ce198d7a
commit
51f3c7da83
@ -3391,7 +3391,7 @@ int QMetaEnum::Data::index(const QMetaObject *mobj) const
|
||||
}
|
||||
|
||||
/*!
|
||||
\fn QMetaEnum QMetaEnum::fromType()
|
||||
\fn template<typename T> QMetaEnum QMetaEnum::fromType()
|
||||
\since 5.5
|
||||
|
||||
Returns the QMetaEnum corresponding to the type in the template parameter.
|
||||
|
Loading…
Reference in New Issue
Block a user