diff options
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/data/componentTypes.qml')
-rw-r--r-- | tests/auto/qml/qqmlcomponent/data/componentTypes.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlcomponent/data/componentTypes.qml b/tests/auto/qml/qqmlcomponent/data/componentTypes.qml new file mode 100644 index 0000000000..48b68e9112 --- /dev/null +++ b/tests/auto/qml/qqmlcomponent/data/componentTypes.qml @@ -0,0 +1,25 @@ +import QtQuick +Item { + ComponentType { // normal type here + id: normal + property string text: "indirect component" + } + + Component { + id: accessibleNormal + ComponentType { + id: inaccessibleNormal + } + } + + property Component p2: ComponentType { id: accessible; property string text: "foo" } + property Component p3: Rectangle { id: inaccessible; property string text: "bar" } + + TableView { + delegate: Rectangle { id: inaccessibleDelegate } + } + + TableView { + delegate: ComponentType { id: accessibleDelegate } + } +} |