diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-26 15:20:25 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-28 09:21:12 +0100 |
commit | 8f7ba9645f3bff5fa1c54c9cdcc5693256a49606 (patch) | |
tree | f68ba45cf9b685dd981443fb7b5dd7bcf664e5a1 /src/imports | |
parent | dc95cbee34ae58d1eb6d18ca99c30a28049e2a12 (diff) |
builtins.qmltypes: Change real's internal name to "double"
It's called "double" everywhere else. We also have a "float" type in
some places. Add that one. "double" still has an export called "real" as
that is what you write in QML files.
Change-Id: I4107e28c3441b9f829aca9abcbcbb8c5e3f8d327
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/builtins/builtins.qmltypes | 163 |
1 files changed, 84 insertions, 79 deletions
diff --git a/src/imports/builtins/builtins.qmltypes b/src/imports/builtins/builtins.qmltypes index b85e181e5d..b871fce226 100644 --- a/src/imports/builtins/builtins.qmltypes +++ b/src/imports/builtins/builtins.qmltypes @@ -82,7 +82,7 @@ Module { Property{ name:"NEGATIVE_INFINITY" ; type: "NumberPrototype"; isReadonly: true } Method{ name: "parseFloat" - type: "real" + type: "double" Parameter { name: "string"; type: "string" } } Method{ @@ -131,135 +131,135 @@ Module { isSingleton: true exports: ["QML/Math 1.0"] exportMetaObjectRevisions: [256] - Property{ name:"E" ; type: "real"; isReadonly: true } - Property{ name:"LN10" ; type: "real"; isReadonly: true } - Property{ name:"LN2" ; type: "real"; isReadonly: true } - Property{ name:"LOG10E" ; type: "real"; isReadonly: true } - Property{ name:"LOG2E" ; type: "real"; isReadonly: true } - Property{ name:"PI" ; type: "real"; isReadonly: true } - Property{ name:"SQRT1_2" ; type: "real"; isReadonly: true } - Property{ name:"SQRT2" ; type: "real"; isReadonly: true } + Property{ name:"E" ; type: "double"; isReadonly: true } + Property{ name:"LN10" ; type: "double"; isReadonly: true } + Property{ name:"LN2" ; type: "double"; isReadonly: true } + Property{ name:"LOG10E" ; type: "double"; isReadonly: true } + Property{ name:"LOG2E" ; type: "double"; isReadonly: true } + Property{ name:"PI" ; type: "double"; isReadonly: true } + Property{ name:"SQRT1_2" ; type: "double"; isReadonly: true } + Property{ name:"SQRT2" ; type: "double"; isReadonly: true } Method{ name: "abs" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "acos" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "acosh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "asin" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "asinh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "atan" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "atanh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "atan2" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "acbrt" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "ceil" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "clz32" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "cos" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "cosh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "exp" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "expm1" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "floor" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "fround" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "hypot" - type: "real" - Parameter { name: "value1"; type: "real" } - Parameter { name: "value2"; type: "real" } + type: "double" + Parameter { name: "value1"; type: "double" } + Parameter { name: "value2"; type: "double" } // vararg } Method{ name: "cosh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "imul" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "log" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "log1p" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "log10" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "log2" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "max" @@ -277,48 +277,48 @@ Module { } Method{ name: "pow" - type: "real" - Parameter { name: "x"; type: "real" } - Parameter { name: "y"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } + Parameter { name: "y"; type: "double" } } Method{ name: "random" - type: "real" + type: "double" } Method{ name: "round" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "sign" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "sin" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "sinh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "sqrt" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "tanh" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } Method{ name: "trunc" - type: "real" - Parameter { name: "x"; type: "real" } + type: "double" + Parameter { name: "x"; type: "double" } } } Component { @@ -328,7 +328,12 @@ Module { prototype: "NumberPrototype" } Component { - name: "real" + name: "float" + prototype: "NumberPrototype" + accessSemantics: "value" + } + Component { + name: "double" exports: ["QML/real 1.0"] exportMetaObjectRevisions: [256] prototype: "NumberPrototype" @@ -631,11 +636,11 @@ Module { } Method{ name: "getTime" - type: "real" + type: "double" } Method{ name: "getTimeZoneOffset" - type: "real" + type: "double" } Method{ name: "getUTCDate" |