aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitem/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickitem/data')
-rw-r--r--tests/auto/quick/qquickitem/data/visualParentOwnership.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitem/data/visualParentOwnership.qml b/tests/auto/quick/qquickitem/data/visualParentOwnership.qml
new file mode 100644
index 0000000000..644d14ba43
--- /dev/null
+++ b/tests/auto/quick/qquickitem/data/visualParentOwnership.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+Item {
+ Component {
+ id: factory
+ Item {}
+ }
+
+ property Item keepAliveProperty;
+
+ function createItemWithoutParent() {
+ return factory.createObject(/*parent*/ null);
+ }
+}