diff options
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r-- | src/qml/qml/qqmlproperty.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
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 {}; |