aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/builtins
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-11-13 13:40:56 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-11-18 08:54:47 +0100
commitdf179c52ec02aec91058d6977e08a405932af2bd (patch)
tree8415bb0adb85ecdfe43e2f0cd8182acb76c45dd9 /src/imports/builtins
parent7e3f5f2224ba0e57a9dffa6251bb002cde564f56 (diff)
QmlCompiler: Fix resolution of method and property types
We need to resolve the types for QML elements in two passes because only after finishing the parsing we have the QML-declared methods and properties available. We already need the base type before, though. Also, there can be multiple methods of the same name. We need API to access them. It also turns out that the internal name of the "var" type has to be QVariant in order to match reality. "var" properties and unnamed arguments to JS functions are implemented as QVariant. Change-Id: I541f11e96db72d832f4e4443d3a5d31079a56575 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/imports/builtins')
-rw-r--r--src/imports/builtins/builtins.qmltypes7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/imports/builtins/builtins.qmltypes b/src/imports/builtins/builtins.qmltypes
index 909dab7707..572673e5c1 100644
--- a/src/imports/builtins/builtins.qmltypes
+++ b/src/imports/builtins/builtins.qmltypes
@@ -10,13 +10,18 @@ Module {
}
Component {
- name: "QJSValue"
+ name: "QVariant"
accessSemantics: "value"
exports: ["QML/var 1.0", "QML/variant 1.0"]
exportMetaObjectRevisions: [256]
}
Component {
+ name: "QJSValue"
+ accessSemantics: "value"
+ }
+
+ Component {
name: "varargs"
accessSemantics: "value"
}