aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Shalayel <[email protected]>2025-10-13 15:27:07 +0200
committerSami Shalayel <[email protected]>2025-10-13 14:01:10 +0000
commitf950bb9d6d6e543ea3ec6ad135b5b1b82f6b6f56 (patch)
treec53207ab0544bb3250b84006b51168f10bda2b3b
parent7eb445f2d24701c9aaa3f889dbc1ee9bd1b16c3c (diff)
qmljstypedescriptionreader: don't warn about missing type binding
Adapt qmljstypedescriptionreader to its qtdeclarative counterpart and only warn about missing name bindings. This helps to mute lots of warnings of the type: .../qml/QML/jsroot.qmltypes:3399:9: Property object is missing a name or type script binding. that can't be fixed and that are actually totally fine. Don't change the actual warning because of string freeze. Fixes: QTCREATORBUG-33624 Change-Id: Ie0b7c32ff36ac585802fcca70ecd34e2a350786e Reviewed-by: Fabian Kosmale <[email protected]>
-rw-r--r--src/libs/qmljs/qmljstypedescriptionreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljstypedescriptionreader.cpp b/src/libs/qmljs/qmljstypedescriptionreader.cpp
index 9d67ad05b23..c2bdddb4d26 100644
--- a/src/libs/qmljs/qmljstypedescriptionreader.cpp
+++ b/src/libs/qmljs/qmljstypedescriptionreader.cpp
@@ -329,7 +329,7 @@ void TypeDescriptionReader::readProperty(UiObjectDefinition *ast, FakeMetaObject
revision = readIntBinding(script);
}
- if (name.isEmpty() || type.isEmpty()) {
+ if (name.isEmpty()) {
addError(ast->firstSourceLocation(), Tr::tr("Property object is missing a name or type script binding."));
return;
}