From b117972a630219b52809475a40dc1b99b784d15e Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Wed, 17 Feb 2021 13:13:32 +0100 Subject: QQmlProperty: document propertyMetaType Change-Id: Ida75d35fb4eced20b206caf3bc247c734679cf10 Reviewed-by: Ulf Hermann (cherry picked from commit edf8106be2b94dea5bd3b8a446705521957bf973) Reviewed-by: Qt Cherry-pick Bot --- src/qml/qml/qqmlproperty.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/qml') diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp index 238a0462f0..358d63217a 100644 --- a/src/qml/qml/qqmlproperty.cpp +++ b/src/qml/qml/qqmlproperty.cpp @@ -528,14 +528,21 @@ bool QQmlProperty::operator==(const QQmlProperty &other) const } /*! - Returns the QVariant type of the property, or QVariant::Invalid if the - property has no QVariant type. + Returns the metatype id of the property, or QMetaType::UnknownType if the + property has no metatype. + + \sa propertyMetaType */ int QQmlProperty::propertyType() const { return d ? d->propertyType().id() : int(QMetaType::UnknownType); } +/*! + Returns the metatype of the property. + + \sa propertyType + */ QMetaType QQmlProperty::propertyMetaType() const { return d ? d->propertyType() : QMetaType {}; -- cgit v1.2.3