diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-18 11:40:31 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-20 08:43:32 +0100 |
commit | 08c8e8ac3ba8eb23ae5c158990f5d029ac9988ed (patch) | |
tree | 2975990abc587af692cf7a6cc3d14bbb01ae70a6 /src/imports | |
parent | 01542a6f25a15e3fb8072db899da7d9cc51d4568 (diff) |
qmllint: Check for existence of property types
For each binding there should be a property and that property should
have a type we recognize.
Enums can be property types in C++. We support this by adding child
scopes for such enums. The child scopes are then referenced by the
QQmlJSMetaEnums and derive from int.
The test then reveals that we were missing a few properties in
QtQuick.tooling. Add those.
Pick-to: 6.1
Change-Id: I1deef94393ee0e17d34c2dc5980ebfbf25417f36
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/tooling/Component.qml | 1 | ||||
-rw-r--r-- | src/imports/tooling/Parameter.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/tooling/Component.qml b/src/imports/tooling/Component.qml index 786e4a99df..942d838900 100644 --- a/src/imports/tooling/Component.qml +++ b/src/imports/tooling/Component.qml @@ -55,4 +55,5 @@ QtObject { property bool isCreatable: name.length > 0 property bool isComposite: false property string accessSemantics: "reference" + property string defaultProperty } diff --git a/src/imports/tooling/Parameter.qml b/src/imports/tooling/Parameter.qml index 108a80098f..a45f9d33ff 100644 --- a/src/imports/tooling/Parameter.qml +++ b/src/imports/tooling/Parameter.qml @@ -42,4 +42,5 @@ import QML QtObject { required property string name required property string type + property bool isPointer: false } |