diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-27 16:50:53 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-12-01 09:43:49 +0100 |
commit | db92f6590fa16bb2876d8653baddf46e8ff4da17 (patch) | |
tree | c06905fc9c37aa70a1760a96456d441cf437a8e9 /src/imports | |
parent | 80d3cf8a864a71798d82470ac8524a56f5e9c5dc (diff) |
builtins.qmltypes: Rename varargs to QQmlV4Function
This is how we express varargs in other places.
Change-Id: I66c8aafa152e6c9880074d9c36a88f6ed9168633
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/builtins/builtins.qmltypes | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/imports/builtins/builtins.qmltypes b/src/imports/builtins/builtins.qmltypes index 09577e46c5..a2dabde755 100644 --- a/src/imports/builtins/builtins.qmltypes +++ b/src/imports/builtins/builtins.qmltypes @@ -22,8 +22,11 @@ Module { } Component { - name: "varargs" - accessSemantics: "value" + // QQmlV4Function is the name for varargs. If such parameter is declared + // we can invoke the method with any number of QJSValue parameters. + // Access semantics are not "value" because the actual QQmlV4Function object + // is passed as a pointer. + name: "QQmlV4Function" } Component { @@ -531,7 +534,7 @@ Module { Parameter { name: "arguments" - type: "varargs" + type: "QQmlV4Function" } } @@ -607,7 +610,7 @@ Module { Parameter { name: "arguments" - type: "varargs" + type: "QQmlV4Function" } } @@ -617,7 +620,7 @@ Module { Parameter { name: "arguments" - type: "varargs" + type: "QQmlV4Function" } } @@ -801,7 +804,7 @@ Module { Parameter { name: "arguments" - type: "varargs" + type: "QQmlV4Function" } } @@ -811,7 +814,7 @@ Module { Parameter { name: "arguments" - type: "varargs" + type: "QQmlV4Function" } } @@ -826,7 +829,7 @@ Module { Parameter { name: "substitutions" - type: "varargs" + type: "QQmlV4Function" } } @@ -874,7 +877,7 @@ Module { Parameter { name: "arguments" - type: "varargs" + type: "QQmlV4Function" } } |