Doc: Improve documentation for QMetaEnum::metaType()
Rephrase hard-to-read sentence. Replace 'integral type; with 'numeric type', as this seems to be the terminology in the standard: The type-specifier-seq of an enum-base shall name an integral type Finally, no need to use \sa for a method that is mentioned right before. Change-Id: I543041e78cc09ccd58182db454880941592c74ae Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> (cherry picked from commit 5bfac5358a9bde151491443fbc75c913b7ada9fd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b4ec9f1730
commit
fe2ceb6078
@ -3044,15 +3044,14 @@ const char *QMetaEnum::enumName() const
|
||||
/*!
|
||||
Returns the meta type of the enum.
|
||||
|
||||
If the QMetaObject this enum is part of was generated with Qt 6.5 or
|
||||
earlier this will be the invalid metatype.
|
||||
If the QMetaObject that this enum is part of was generated with Qt 6.5 or
|
||||
earlier, this will be an invalid meta type.
|
||||
|
||||
\note This is the meta type of the enum itself, not of its underlying
|
||||
numeric type. You can retrieve the meta type of the underlying type of the
|
||||
integral type. You can retrieve the meta type of the underlying type of the
|
||||
enum using \l{QMetaType::underlyingType()}.
|
||||
|
||||
\since 6.6
|
||||
\sa QMetaType::underlyingType()
|
||||
*/
|
||||
QMetaType QMetaEnum::metaType() const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user