diff options
author | Kai Köhne <kai.koehne@qt.io> | 2023-09-08 11:47:23 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2023-09-21 21:29:21 +0200 |
commit | 5bfac5358a9bde151491443fbc75c913b7ada9fd (patch) | |
tree | 50a18ed040226f57d1afe9af8d14cab3dc6c1be3 /src/corelib/kernel/qmetaobject.cpp | |
parent | 802db7b52380c8c9dae34ee5adab4b1bf974634b (diff) |
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 <andreas.eliasson@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
-rw-r--r-- | src/corelib/kernel/qmetaobject.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp index 7c0d97735d..591f912463 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 { |