forked from qt-creator/qt-creator
QmlDesigner: Add QTC_CHECK
if those fail we also want console output in release builds. Change-Id: If0c913ae9f0999219ba933675f794319c1930eec Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user