aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2019-09-11 16:38:29 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2019-09-12 08:07:10 +0200
commit5ca1d2e0b2912e578a32c5e11b4fd1d7a0ef28f3 (patch)
tree1b5b3949a606ce7691c13d98167adf82a6c73d19 /tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml
parentd38bac596946c3dd9cce3c0b4127509421dc917d (diff)
QQmlTypeLoader: Prevent trivial cycles
The type loader already contained a cycle check, however it did not work for the attached example. We now do an additional test for A->B->A cycles, which fixes the bug. This is a valid strategy, as in that case the currently resolved type would immediately fullfill the depentency of the type waiting on it, which in turn resolves the only dependency of the current type. Fixes: QTBUG-78098 Change-Id: I8b550a1c240d3d0fbf158beb99a5daf992904cb0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml')
-rw-r--r--tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml b/tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml
new file mode 100644
index 0000000000..b20a2def11
--- /dev/null
+++ b/tests/auto/qml/qqmltypeloader/data/Com/Orga/Handlers/Handler.qml
@@ -0,0 +1,7 @@
+import QtQuick 2.6
+import Com.Orga 1.0
+
+Rectangle {
+ color: Style.name
+ Text {text: "Hello world!"}
+}