diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-11-30 01:29:39 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-11-30 01:30:36 (GMT) |
commit | 68e3cab8a8183a5a88e5be092471a05692e05afe (patch) | |
tree | be1dabee49f3d8444298778fd440daa5a2a7c052 /src/declarative/util/qmlbehavior_p.h | |
parent | 85b3e8fab4a644f94a2953885f1e68369b070e64 (diff) | |
download | Qt-68e3cab8a8183a5a88e5be092471a05692e05afe.zip Qt-68e3cab8a8183a5a88e5be092471a05692e05afe.tar.gz Qt-68e3cab8a8183a5a88e5be092471a05692e05afe.tar.bz2 |
Support disabling a Behavior.
Diffstat (limited to 'src/declarative/util/qmlbehavior_p.h')
-rw-r--r-- | src/declarative/util/qmlbehavior_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/util/qmlbehavior_p.h b/src/declarative/util/qmlbehavior_p.h index b61df32..581a0a8 100644 --- a/src/declarative/util/qmlbehavior_p.h +++ b/src/declarative/util/qmlbehavior_p.h @@ -63,6 +63,7 @@ class Q_DECLARATIVE_EXPORT QmlBehavior : public QObject, public QmlPropertyValue Q_INTERFACES(QmlPropertyValueInterceptor) Q_CLASSINFO("DefaultProperty", "animation") Q_PROPERTY(QmlAbstractAnimation *animation READ animation WRITE setAnimation) + Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged) public: QmlBehavior(QObject *parent=0); @@ -73,6 +74,12 @@ public: QmlAbstractAnimation *animation(); void setAnimation(QmlAbstractAnimation *); + + bool enabled() const; + void setEnabled(bool enabled); + +Q_SIGNALS: + void enabledChanged(); }; QT_END_NAMESPACE |