aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/tst_qmltc.h
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2022-10-11 11:41:13 +0200
committerSami Shalayel <sami.shalayel@qt.io>2022-10-11 15:52:12 +0000
commit259ff52e64cd8725bfaa7330a33f8d36456e8b1a (patch)
tree910fb64469f29e473cb2699e81e9b4ef3361bdca /tests/auto/qml/qmltc/tst_qmltc.h
parentcba96b3a97977f71931f311db9d5644d1d74d694 (diff)
qmltc: Remove broken alias optimization
Remove the recursive alias resolution mechanism. It tried to resolve aliases recursively but only knew the id's of the current component. This means that an alias pointing to a property defined in another component (e.g. a different qml file) was resolved using the id-to-scope map of the component containing the alias property. This leads to unresolved aliases at best and endless loops when the aliased property was itself an alias pointing to some property also existing in the original component (see QmltcTests/ComponentWithAlias{1..3}.qml for an example). Also added the reproducer in the qmltc tests. Fixes: QTBUG-107533 Fixes: QTBUG-107534 Change-Id: Idbf0cff3e45213bc7fbb4a98a9393c6754b00046 Pick-to: 6.4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmltc/tst_qmltc.h')
-rw-r--r--tests/auto/qml/qmltc/tst_qmltc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltc/tst_qmltc.h b/tests/auto/qml/qmltc/tst_qmltc.h
index 0eea63b0f2..eaa4bed27a 100644
--- a/tests/auto/qml/qmltc/tst_qmltc.h
+++ b/tests/auto/qml/qmltc/tst_qmltc.h
@@ -88,4 +88,5 @@ private slots:
void generalizedGroupedProperty();
void appendToQQmlListProperty();
void inlineComponents();
+ void aliases();
};