35 static QVariant getResetValue(QObject *object,
const QQuickDesignerSupport::PropertyName &propertyName);
36 static void doResetProperty(QObject *object, QQmlContext *context,
const QQuickDesignerSupport::PropertyName &propertyName);
37 static bool hasValidResetBinding(QObject *object,
const QQuickDesignerSupport::PropertyName &propertyName);
40 const QQuickDesignerSupport::PropertyName &propertyName,
44 const QQuickDesignerSupport::PropertyName &propertyName,
45 const QString &expression);
48 const QQuickDesignerSupport::PropertyName &propertyName);
52 QQuickDesignerCustomObjectData(QObject *object);
53 void populateResetHashes();
54 QObject *object()
const;
55 QVariant getResetValue(
const QQuickDesignerSupport::PropertyName &propertyName)
const;
56 void doResetProperty(QQmlContext *context,
const QQuickDesignerSupport::PropertyName &propertyName);
57 bool hasValidResetBinding(
const QQuickDesignerSupport::PropertyName &propertyName)
const;
58 QQmlAnyBinding getResetBinding(
const QQuickDesignerSupport::PropertyName &propertyName)
const;
59 bool hasBindingForProperty(QQmlContext *context,
const QQuickDesignerSupport::PropertyName &propertyName,
bool *hasChanged)
const;
60 void setPropertyBinding(QQmlContext *context,
const QQuickDesignerSupport::PropertyName &propertyName,
const QString &expression);
61 void keepBindingFromGettingDeleted(QQmlContext *context,
const QQuickDesignerSupport::PropertyName &propertyName);
64 QHash<QQuickDesignerSupport::PropertyName, QVariant> m_resetValueHash;
65 QHash<QQuickDesignerSupport::PropertyName, QQmlAnyBinding> m_resetBindingHash;
66 mutable QHash<QQuickDesignerSupport::PropertyName,
bool> m_hasBindingHash;