diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-02-17 13:13:32 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-19 08:53:53 +0000 |
commit | b117972a630219b52809475a40dc1b99b784d15e (patch) | |
tree | eabd0158d758f7b74ff5e7430493845e01d72bb2 /src | |
parent | 04350f5129a436c16e023dc54c01586cd5dbb3e4 (diff) |
QQmlProperty: document propertyMetaType
Change-Id: Ida75d35fb4eced20b206caf3bc247c734679cf10
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit edf8106be2b94dea5bd3b8a446705521957bf973)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-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 {}; |