forked from qt-creator/qt-creator
QmlDesigner: Do not warn about attached properties
Change-Id: I2a59f5133d1542766bcd82551c998d5cf4d38d56 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user