diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/topLevelComponent.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/topLevelComponent.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/topLevelComponent.qml b/tests/auto/qml/qmlcppcodegen/data/topLevelComponent.qml new file mode 100644 index 0000000000..a73e28f642 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/topLevelComponent.qml @@ -0,0 +1,14 @@ +pragma Strict +import QtQml + +Component { + QtObject { + id: root + + function myOpen() { + root.objectName = "foo" + } + + Component.onCompleted: myOpen() + } +} |