diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-22 16:40:50 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-22 20:55:22 +0200 |
commit | 55f4a4e6f02febdb7732fdc7b193293555242237 (patch) | |
tree | 9c534805dd568b2c157ae2222aebf9ca3790e7ac /src/corelib/kernel/qvariant.cpp | |
parent | fc8f5afc874073f91d3770273e0a9164182d7897 (diff) |
Fix various qdoc warnings
Parameter types and names, missing enum values, and \since 6.0.
Change-Id: I1b028fcf2ef0b57accb1ef7cebf17dab9f6d571e
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
-rw-r--r-- | src/corelib/kernel/qvariant.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index e36e926e7b..e97ea3570d 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -1984,7 +1984,7 @@ QVariantList QVariant::toList() const \since 6.0 Returns \c true if the variant's type can be cast to the requested - type, \a targetTypeId. Such casting is done automatically when calling the + type, \a type. Such casting is done automatically when calling the toInt(), toBool(), ... methods. \sa QMetaType::canConvert() @@ -2015,7 +2015,7 @@ QVariantList QVariant::toList() const */ /*! - Casts the variant to the requested type, \a targetTypeId. If the cast cannot be + Casts the variant to the requested type, \a targetType. If the cast cannot be done, the variant is still changed to the requested type, but is left in a cleared null state similar to that constructed by QVariant(Type). @@ -2024,7 +2024,7 @@ QVariantList QVariant::toList() const A QVariant containing a pointer to a type derived from QObject will also convert and return true for this function if a qobject_cast to the type described - by \a targetTypeId would succeed. Note that this only works for QObject subclasses + by \a targetType would succeed. Note that this only works for QObject subclasses which use the Q_OBJECT macro. \note converting QVariants that are null due to not being initialized or having @@ -2141,7 +2141,7 @@ bool QVariant::view(int type, void *ptr) \li If one type is numeric and the other one a QString, Qt will try to convert the QString to a matching numeric type and if successful compare those. - \i If both variants contain pointers to QObject derived types, QVariant + \li If both variants contain pointers to QObject derived types, QVariant will check whether the types are related and point to the same object. \endlist */ |