From fe2ceb6078f956ec38cb8ab19fee26e7e0cfbfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 8 Sep 2023 11:47:23 +0200 Subject: [PATCH] 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 (cherry picked from commit 5bfac5358a9bde151491443fbc75c913b7ada9fd) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qmetaobject.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp index 188f4da5c3a..a4e36d5550c 100644 --- a/src/corelib/kernel/qmetaobject.cpp +++ b/src/corelib/kernel/qmetaobject.cpp @@ -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 {