31void QQuickDesignerSupportPropertyChanges::removeProperty(QObject *propertyChanges,
const QQuickDesignerSupport::PropertyName &propertyName)
33 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
38 propertyChange->removeProperty(QString::fromUtf8(propertyName));
41QVariant QQuickDesignerSupportPropertyChanges::getProperty(QObject *propertyChanges,
42 const QQuickDesignerSupport::PropertyName &propertyName)
44 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
49 return propertyChange->property(QString::fromUtf8(propertyName));
52void QQuickDesignerSupportPropertyChanges::changeValue(QObject *propertyChanges,
53 const QQuickDesignerSupport::PropertyName &propertyName,
54 const QVariant &value)
56 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
61 propertyChange->changeValue(QString::fromUtf8(propertyName), value);
64void QQuickDesignerSupportPropertyChanges::changeExpression(QObject *propertyChanges,
65 const QQuickDesignerSupport::PropertyName &propertyName,
66 const QString &expression)
68 QQuickPropertyChanges *propertyChange = qobject_cast<QQuickPropertyChanges*>(propertyChanges);
73 propertyChange->changeExpression(QString::fromUtf8(propertyName), expression);
86bool QQuickDesignerSupportPropertyChanges::isNormalProperty(
const QQuickDesignerSupport::PropertyName &propertyName)
88 const QMetaObject *metaObject = &QQuickPropertyChanges::staticMetaObject;
89 return (metaObject->indexOfProperty(propertyName) > 0);