foreach (ModelNode modelNode, modelNodeList) {
     reparentTo(modelNode, parentModelNode);
     modelNode.removeProperty("x");
     modelNode.removeProperty("y");
     foreach (const VariantProperty &variantProperty, modelNode.variantProperties()) {
         if (variantProperty.name().contains("anchors."))
             modelNode.removeProperty(variantProperty.name());
     }
     foreach (const BindingProperty &bindingProperty, modelNode.bindingProperties()) {
         if (bindingProperty.name().contains("anchors."))
             modelNode.removeProperty(bindingProperty.name());
     }
 }
Beispiel #2
0
static void syncBindingProperties(ModelNode &outputNode, const ModelNode &inputNode, const QHash<QString, QString> &idRenamingHash)
{
    foreach (const BindingProperty &bindingProperty, inputNode.bindingProperties()) {
        outputNode.bindingProperty(bindingProperty.name()).setExpression(fixExpression(bindingProperty.expression(), idRenamingHash));
    }
}