qt6-bb10/qtdeclarative/tests/auto/qmldom/domdata/domitem/finalizeScriptExpressions.qml

30 lines
657 B
QML

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Item {
property var binding
binding: 42
property var bindingInPropertyDefinition: 123
function return42(aa: Item = 33, bb: string = "Hello", cc = binding): int {
return 42
}
function empty(aa: Item, bb: string, cc) {}
function full(aa: Item, bb: string, cc)
{
const x = 42;
const formula = (x + 5) * 2 + 10 - x
return formula;
}
id: idBinding
property var arrayBinding
arrayBinding:[]
property var objectBinding
objectBinding: Item {}
}