diff --git a/src/plugins/qmldesigner/designercore/model/bindingproperty.cpp b/src/plugins/qmldesigner/designercore/model/bindingproperty.cpp index 482a3e45d27..3346eef6a62 100644 --- a/src/plugins/qmldesigner/designercore/model/bindingproperty.cpp +++ b/src/plugins/qmldesigner/designercore/model/bindingproperty.cpp @@ -62,6 +62,9 @@ void BindingProperty::setExpression(const QString &expression) if (!isValid()) throw InvalidModelNodeException(__LINE__, __FUNCTION__, __FILE__); + if (isDynamic()) + qWarning() << "Calling BindingProperty::setExpression on dynamic property."; + if (name() == "id") { // the ID for a node is independent of the state, so it has to be set with ModelNode::setId throw InvalidPropertyException(__LINE__, __FUNCTION__, __FILE__, name()); } diff --git a/src/plugins/qmldesigner/designercore/model/variantproperty.cpp b/src/plugins/qmldesigner/designercore/model/variantproperty.cpp index 37800f1b52f..8c1bb0fd73f 100644 --- a/src/plugins/qmldesigner/designercore/model/variantproperty.cpp +++ b/src/plugins/qmldesigner/designercore/model/variantproperty.cpp @@ -61,6 +61,9 @@ void VariantProperty::setValue(const QVariant &value) if (!isValid()) throw InvalidModelNodeException(__LINE__, __FUNCTION__, __FILE__); + if (isDynamic()) + qWarning() << "Calling VariantProperty::setValue on dynamic property."; + if (value.isNull()) throw InvalidArgumentException(__LINE__, __FUNCTION__, __FILE__, name());