aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/signalIndexMismatch.qml
diff options
context:
space:
mode:
authorSami Shalayel <[email protected]>2025-03-14 15:17:39 +0100
committerSami Shalayel <[email protected]>2025-05-20 16:04:51 +0100
commite0c4a35a10ef50f44955f9c0ae2ae30eace5cb21 (patch)
tree5817751c46533baf4322fb3f281ce98ce9493b89 /tests/auto/qml/qmlcppcodegen/data/signalIndexMismatch.qml
parent6864d9a1b8326bc031d3736a9a9d637698e0ebc5 (diff)
QQmlSA: extend ScriptBindingValueType for function bindings
In QtC, ErrBlocksNotSupportedInQmlUi is supposed to warn about function blocks when used in bindings. We can't detect function blocks with the QQmlSA infrastructure because we don't have access to the AST, but we still can actually detect bindings to function blocks. Extend ScriptBindingValueType to be able to recognize bindings that contain functions (JS blocks, arrow functions and lambdas). Extend the QQmlSA interface to find out if a binding contains a function so that qdslintplugin can use it in a later commit. Task-number: QTBUG-129308 Change-Id: Ic46ad6faf7a04d805084db2d9353b009e881d4dd Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/signalIndexMismatch.qml')
0 files changed, 0 insertions, 0 deletions