diff options
Diffstat (limited to 'tests/auto/qmlls/utils/data/findUsages/bindings/bindings.qml')
-rw-r--r-- | tests/auto/qmlls/utils/data/findUsages/bindings/bindings.qml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/auto/qmlls/utils/data/findUsages/bindings/bindings.qml b/tests/auto/qmlls/utils/data/findUsages/bindings/bindings.qml new file mode 100644 index 0000000000..f4d4c74aff --- /dev/null +++ b/tests/auto/qmlls/utils/data/findUsages/bindings/bindings.qml @@ -0,0 +1,39 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +import QtQuick + +Item { + id: root + property bool patronChanged // shouldn't be found + + Item { + id: inner + property bool patronChanged + + Binding on patronChanged { + value: !inner.patronChanged + when: root.patronChanged // // shouldn't be found + } + + Binding { + target: inner + property: "patronChanged" + value: !inner.patronChanged + when: root.patronChanged // shouldn't be found + } + + // generalized dot + Binding { + inner.patronChanged: !inner.patronChanged + when: root.patronChanged // // shouldn't be found + } + + // generalized block + Binding { + inner { + patronChanged: false + } + when: root.patronChanged // // shouldn't be found + } + } +} |