32void QQuickDesignerSupportPropertyChanges::removeProperty(QObject *propertyChanges,
const QQuickDesignerSupport::PropertyName &propertyName)
34 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
39 propertyChange->removeProperty(QString::fromUtf8(propertyName));
42QVariant QQuickDesignerSupportPropertyChanges::getProperty(QObject *propertyChanges,
43 const QQuickDesignerSupport::PropertyName &propertyName)
45 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
50 return propertyChange->property(QString::fromUtf8(propertyName));
53void QQuickDesignerSupportPropertyChanges::changeValue(QObject *propertyChanges,
54 const QQuickDesignerSupport::PropertyName &propertyName,
55 const QVariant &value)
57 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
62 propertyChange->changeValue(QString::fromUtf8(propertyName), value);
65void QQuickDesignerSupportPropertyChanges::changeExpression(QObject *propertyChanges,
66 const QQuickDesignerSupport::PropertyName &propertyName,
67 const QString &expression)
69 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
74 propertyChange->changeExpression(QString::fromUtf8(propertyName), expression);
87bool QQuickDesignerSupportPropertyChanges::isNormalProperty(
const QQuickDesignerSupport::PropertyName &propertyName)
89 const QMetaObject *metaObject = &QQuickPropertyChanges::staticMetaObject;
90 return (metaObject->indexOfProperty(propertyName) > 0);