From 5bfac5358a9bde151491443fbc75c913b7ada9fd 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. Pick-to: 6.6 Change-Id: I543041e78cc09ccd58182db454880941592c74ae Reviewed-by: Andreas Eliasson --- 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 7c0d97735db..591f9124637 100644 --- a/src/corelib/kernel/qmetaobject.cpp +++ b/src/corelib/kernel/qmetaobject.cpp @@ -3082,15 +3082,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 {