From 81421c2c8e8957fd2095a5b12868975a8e425067 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 21 Dec 2023 15:28:21 +0100 Subject: [PATCH] QmlDesigner: Do not warn about attached properties Change-Id: I2a59f5133d1542766bcd82551c998d5cf4d38d56 Reviewed-by: Thomas Hartmann Reviewed-by: Qt CI Patch Build Bot Reviewed-by: --- .../qmldesigner/designercore/model/texttomodelmerger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index 676011bdc57..889f8471978 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -606,8 +606,9 @@ public: && astValue.trimmed().right(1) == u"\""; const QString cleanedValue = fixEscapedUnicodeChar(deEscape(stripQuotes(astValue.trimmed()))); if (!propertyMetaInfo.isValid()) { + const bool isAttached = !propertyName.isEmpty() && propertyName[0].isUpper(); // Only list elements might have unknown properties. - if (!node.metaInfo().isQtQuickListElement()) { + if (!node.metaInfo().isQtQuickListElement() && !isAttached) { qCInfo(texttomodelMergerDebug) << Q_FUNC_INFO << "Unknown property" << propertyPrefix + QLatin1Char('.') + toString(propertyId) << "on line"