diff options
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/inlineComponentWithImplicitComponent.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/inlineComponentWithImplicitComponent.qml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/inlineComponentWithImplicitComponent.qml b/tests/auto/qml/qqmllanguage/data/inlineComponentWithImplicitComponent.qml new file mode 100644 index 0000000000..902dfb501d --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/inlineComponentWithImplicitComponent.qml @@ -0,0 +1,27 @@ +import QtQml + +QtObject { + component C1: QtObject { + property Component comp: null + } + + component C2: C1 { + comp: QtObject { + objectName: "green" + } + } + + component C3: C1 { + comp: Component { + QtObject { + objectName: "blue" + } + } + } + + property QtObject c1: C1 {} + property QtObject c2: C2 {} + property QtObject c3: C3 {} + + objectName: c2.comp.createObject().objectName + " " + c3.comp.createObject().objectName +} |