diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/convertPrimitiveToVar.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/convertPrimitiveToVar.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/convertPrimitiveToVar.qml b/tests/auto/qml/qmlcppcodegen/data/convertPrimitiveToVar.qml new file mode 100644 index 0000000000..f7c2cc4058 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/convertPrimitiveToVar.qml @@ -0,0 +1,18 @@ +pragma Strict +import QtQml + +QtObject { + id: foo + + property int offsetValue + + function send(data : variant) { + } + + Component.onCompleted: () => { + let deltaOffset = 42 + deltaOffset -= 1 + foo.offsetValue = deltaOffset + foo.send({offset: deltaOffset}) + } +} |