From 684e5d05286b7a1608ed95a6a2635d28069ed227 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 27 Sep 2024 13:42:05 +0200 Subject: [PATCH] QmlDesigner: Add QTC_CHECK if those fail we also want console output in release builds. Change-Id: If0c913ae9f0999219ba933675f794319c1930eec Reviewed-by: Thomas Hartmann --- .../libs/designercore/rewriter/texttomodelmerger.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmldesigner/libs/designercore/rewriter/texttomodelmerger.cpp b/src/plugins/qmldesigner/libs/designercore/rewriter/texttomodelmerger.cpp index 27e9fb0102c..c4bfd576291 100644 --- a/src/plugins/qmldesigner/libs/designercore/rewriter/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/libs/designercore/rewriter/texttomodelmerger.cpp @@ -1810,6 +1810,7 @@ void ModelValidator::shouldBeVariantProperty([[maybe_unused]] AbstractProperty & const QVariant & /*qmlVariantValue*/, const TypeName & /*dynamicTypeName*/) { + QTC_CHECK(modelProperty.isVariantProperty()); Q_ASSERT(modelProperty.isVariantProperty()); Q_ASSERT(0); } @@ -1871,6 +1872,7 @@ void ModelValidator::propertyAbsentFromQml([[maybe_unused]] AbstractProperty &mo { Q_ASSERT(!modelProperty.isValid()); Q_ASSERT(0); + QTC_CHECK(!modelProperty.isValid()); } void ModelValidator::idsDiffer([[maybe_unused]] ModelNode &modelNode,