30class Q_QUICK_EXPORT
QQuickBehavior :
public QObject,
public QQmlPropertyValueInterceptor,
public QQmlFinalizerHook
33 Q_INTERFACES(QQmlFinalizerHook)
34 Q_DECLARE_PRIVATE(QQuickBehavior)
36 Q_INTERFACES(QQmlPropertyValueInterceptor)
37 Q_CLASSINFO(
"DefaultProperty",
"animation")
38 Q_PROPERTY(QQuickAbstractAnimation *animation READ animation WRITE setAnimation)
39 Q_PROPERTY(
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
40 Q_PROPERTY(QVariant targetValue READ targetValue NOTIFY targetValueChanged REVISION(2, 13))
41 Q_PROPERTY(QQmlProperty targetProperty READ targetProperty NOTIFY targetPropertyChanged REVISION(2, 15))
42 Q_CLASSINFO(
"DeferredPropertyNames",
"animation")
43 QML_NAMED_ELEMENT(Behavior)
44 QML_ADDED_IN_VERSION(2, 0)
47 QQuickBehavior(QObject *parent=
nullptr);
50 void setTarget(
const QQmlProperty &) override;
51 void write(
const QVariant &value) override;
52 bool bindable(QUntypedBindable *untypedBindable, QUntypedBindable target) override;
54 QQuickAbstractAnimation *animation();
55 void setAnimation(QQuickAbstractAnimation *);
58 void setEnabled(
bool enabled);
60 QVariant targetValue()
const;
62 QQmlProperty targetProperty()
const;
64 void componentFinalized() override;
67 void enabledChanged();
68 void targetValueChanged();
69 void targetPropertyChanged();