qtdeclarative/tests/auto/qml/qmlcppcodegen/data/convertPrimitiveToVar.qml

19 lines
300 B
QML

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})
}
}