aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/Tab1.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-04-08 13:50:46 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-04-09 10:50:39 +0200
commit06aca6a1d5f4bad74bb5d3d82025ffd789557a05 (patch)
treeabc8e2618f1406c4d6c04641cbf2b828d3f13516 /tests/auto/qml/qqmllanguage/data/Tab1.qml
parent50b679a03cda1789c8a6c3b252551e5d143ce017 (diff)
Do not auto-clean components with live inline components
The inline components do not hold a strong reference to their outer type because that would be a reference cycle. Fixes: QTBUG-92236 Change-Id: I6d76a114352653210f0ece6c198cf761d3b4eda1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit d0d4cc528ba9e3c39c15a2292066dac1d457abd5)
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/Tab1.qml')
-rw-r--r--tests/auto/qml/qqmllanguage/data/Tab1.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/Tab1.qml b/tests/auto/qml/qqmllanguage/data/Tab1.qml
new file mode 100644
index 0000000000..e1cd6d8c34
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/Tab1.qml
@@ -0,0 +1,9 @@
+import QtQuick 2.15
+
+Item {
+ component LeftTab: Item {
+ }
+
+ component RightTab: Item {
+ }
+}