diff options
Diffstat (limited to 'tests/auto/qmlls/utils/data/findUsages/propertyChanges/propertyChanges.qml')
-rw-r--r-- | tests/auto/qmlls/utils/data/findUsages/propertyChanges/propertyChanges.qml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/auto/qmlls/utils/data/findUsages/propertyChanges/propertyChanges.qml b/tests/auto/qmlls/utils/data/findUsages/propertyChanges/propertyChanges.qml new file mode 100644 index 0000000000..255f1c7ede --- /dev/null +++ b/tests/auto/qmlls/utils/data/findUsages/propertyChanges/propertyChanges.qml @@ -0,0 +1,35 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick +Item { + MouseArea { + id: mouse11 + onClicked: doSomething() + property rect r + } + + states: [ + State { + PropertyChanges { + mouse11 { // block notation + onClicked: doSomethingElse() + r : 34 + } + mouse11.onClicked: doSomething(); // dot notation + } + + // with target property + PropertyChanges { + target: mouse11 + onClicked: doSomethingElse() + r: 45 + } + } + ] + function doSomething() {} + function doSomethingElse() {} + + property rect r // shouldn't be found + property int clicked // shouldn't be gound +} |