diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/dialog.qml')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/dialog.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/dialog.qml b/tests/auto/qml/qmlcppcodegen/data/dialog.qml new file mode 100644 index 0000000000..d33a082741 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/dialog.qml @@ -0,0 +1,21 @@ +import QtQuick +import QtQuick.Templates as T +import QtQuick.Controls.Basic + +T.Dialog { + id: control + header: Label { + background: Rectangle { + width: parent.width + 1 + height: parent.height - 1 + } + } + + property var n: 10 + property var a: { + var x = 1; + for (var i=0; i<n; ++i) + x = x + x; + return x; + } +} |
