diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-12-12 21:45:03 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-12-21 19:33:19 +0000 |
commit | 92dff998b3bf73ee0ad9d636454379869318975f (patch) | |
tree | 0a74f43a415594af31352f540fa2496888f508e8 /src/quick/util/qquickbehavior_p.h | |
parent | fd9d88e3a9f24eb84d029fb9324b4f03ae58ffeb (diff) |
Expose the target value in Behaviors
So that nested animation can use it.
Change-Id: Ief40cda1dfe1ad9a38cf0d18fbf34456dc36e2ee
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick/util/qquickbehavior_p.h')
-rw-r--r-- | src/quick/util/qquickbehavior_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/util/qquickbehavior_p.h b/src/quick/util/qquickbehavior_p.h index f939597d15..80a51d77af 100644 --- a/src/quick/util/qquickbehavior_p.h +++ b/src/quick/util/qquickbehavior_p.h @@ -69,6 +69,7 @@ class Q_QUICK_PRIVATE_EXPORT QQuickBehavior : public QObject, public QQmlPropert Q_CLASSINFO("DefaultProperty", "animation") Q_PROPERTY(QQuickAbstractAnimation *animation READ animation WRITE setAnimation) Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged) + Q_PROPERTY(QVariant targetValue READ targetValue NOTIFY targetValueChanged REVISION 13) Q_CLASSINFO("DeferredPropertyNames", "animation") public: @@ -84,8 +85,11 @@ public: bool enabled() const; void setEnabled(bool enabled); + QVariant targetValue() const; + Q_SIGNALS: void enabledChanged(); + void targetValueChanged(); private Q_SLOTS: void componentFinalized(); |