aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2025-04-30 09:48:08 +0200
committerUlf Hermann <[email protected]>2025-04-30 14:34:17 +0200
commit06cd8c98435c5c778882eb6f1f32e5740bda59e6 (patch)
tree13cd2d3fc7912866d1d3597cebb084dc6aff1c6a /src
parent5f3b613b2ea848dfc66c00a6d91d507703a916b3 (diff)
QtQml: Do not check revisions when resolving aliases
Revisions are for unqualified lookup. Aliases are always qualified. [ChangeLog][QtQml] You can now create aliases to revisioned properties that would be unavailable when accessed without qualification. Aliases are always qualified after all. Pick-to: 6.9 Task-number: QTBUG-136248 Change-Id: I2aae7bb104850def8f220bfab1a2fa056efe78e0 Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/qqmltypecompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltypecompiler.cpp b/src/qml/qml/qqmltypecompiler.cpp
index 0938d14038..842b63b12d 100644
--- a/src/qml/qml/qqmltypecompiler.cpp
+++ b/src/qml/qml/qqmltypecompiler.cpp
@@ -889,7 +889,8 @@ QQmlComponentAndAliasResolver<QQmlTypeCompiler>::resolveAliasesInObject(
QQmlPropertyResolver resolver(targetCache);
- const QQmlPropertyData *targetProperty = resolver.property(property.toString());
+ const QQmlPropertyData *targetProperty = resolver.property(
+ property.toString(), nullptr, QQmlPropertyResolver::IgnoreRevision);
// If it's an alias that we haven't resolved yet, try again later.
if (!targetProperty) {