From 06dc505b9490625141e54f992a2e818d5b6a8777 Mon Sep 17 00:00:00 2001 From: "Evgeniy A. Dushistov" Date: Wed, 14 Apr 2021 15:51:03 +0300 Subject: [PATCH] add "double" into the list of built in QML types Also this fixed "property type checking" for qmllint in case of QML code like "property double xyz" Fixes: QTBUG-92566 Change-Id: Ice33be4287ce0eba2cf9dfaabb760406bdca02b7 Reviewed-by: Ulf Hermann --- src/imports/builtins/builtins.qmltypes | 2 +- tests/auto/qml/qmllint/data/used.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/imports/builtins/builtins.qmltypes b/src/imports/builtins/builtins.qmltypes index db91bc831f..3143a077e2 100644 --- a/src/imports/builtins/builtins.qmltypes +++ b/src/imports/builtins/builtins.qmltypes @@ -108,7 +108,7 @@ Module { Component { name: "double" prototype: "number" - exports: ["QML/real 1.0"] + exports: ["QML/real 1.0", "QML/double 1.0"] exportMetaObjectRevisions: [256] accessSemantics: "value" } diff --git a/tests/auto/qml/qmllint/data/used.qml b/tests/auto/qml/qmllint/data/used.qml index 7a3ec0e574..f5c74b0352 100644 --- a/tests/auto/qml/qmllint/data/used.qml +++ b/tests/auto/qml/qmllint/data/used.qml @@ -13,4 +13,5 @@ Item { required property Something moo property bool boolVar: false property real realVar: 17.17 + property double doubleVar: 18.18 }