diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-02-17 15:23:42 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-02-19 08:03:21 +0100 |
commit | 8de4ea606a6c105be66b7312597b73aaa4ced37a (patch) | |
tree | ce21adf4f352e0eefce37b1504c718b74d0db0c0 /src/qml/qml/qqmlproperty.cpp | |
parent | 1598ab45c7d4af028894757e5c3d4750e02f53c2 (diff) |
QQmlPropertyPrivate::findAliasTarget: add more ergonomic overload
This simply calls the old overload for now and documents what the
function does.
Change-Id: I14f69dbc1610814c1cd714180d5b4a791e97de3a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r-- | src/qml/qml/qqmlproperty.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp index 8689e90c18..598263e0a3 100644 --- a/src/qml/qml/qqmlproperty.cpp +++ b/src/qml/qml/qqmlproperty.cpp @@ -884,6 +884,14 @@ void QQmlPropertyPrivate::findAliasTarget(QObject *object, QQmlPropertyIndex bin *targetBindingIndex = bindingIndex; } +QQmlPropertyPrivate::ResolvedAlias QQmlPropertyPrivate::findAliasTarget(QObject *baseObject, QQmlPropertyIndex baseIndex) +{ + ResolvedAlias resolved; + findAliasTarget(baseObject, baseIndex, &resolved.targetObject, &resolved.targetIndex); + return resolved; +} + + void QQmlPropertyPrivate::setBinding(QQmlAbstractBinding *binding, BindingFlags flags, QQmlPropertyData::WriteFlags writeFlags) { |