diff options
-rw-r--r-- | src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index d8fbbb1cd7..2874cc9c8d 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -78,6 +78,7 @@ using namespace LanguageUtils; using namespace QmlJS; static Q_LOGGING_CATEGORY(rewriterBenchmark, "qtc.rewriter.load", QtWarningMsg) +static Q_LOGGING_CATEGORY(texttomodelMergerDebug, "qtc.texttomodelmerger.debug", QtDebugMsg) namespace { @@ -574,7 +575,7 @@ public: if (parentObject) *parentObject = objectValue; if (!value) { - qWarning() << Q_FUNC_INFO << "Skipping invalid property name" << propertyName; + qCInfo(texttomodelMergerDebug) << Q_FUNC_INFO << "Skipping invalid property name" << propertyName; return false; } @@ -655,9 +656,10 @@ public: const ObjectValue *containingObject = nullptr; QString name; if (!lookupProperty(propertyPrefix, propertyId, &property, &containingObject, &name)) { - qWarning() << Q_FUNC_INFO << "Unknown property" << propertyPrefix + QLatin1Char('.') + toString(propertyId) - << "on line" << propertyId->identifierToken.startLine - << "column" << propertyId->identifierToken.startColumn; + qCInfo(texttomodelMergerDebug) << Q_FUNC_INFO << "Unknown property" + << propertyPrefix + QLatin1Char('.') + toString(propertyId) + << "on line" << propertyId->identifierToken.startLine + << "column" << propertyId->identifierToken.startColumn; return hasQuotes ? QVariant(cleanedValue) : cleverConvert(cleanedValue); } |