diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-03 06:59:04 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-03 06:59:04 (GMT) |
commit | dba7eb104f7788fda36e8a2ecffc8f4c08ec1fae (patch) | |
tree | 69284b0e1ab71d2d8975691973a61018e48b7270 /src | |
parent | 982ea31d6743da63fdcd5b32c14d54d84ab9714a (diff) | |
download | Qt-dba7eb104f7788fda36e8a2ecffc8f4c08ec1fae.zip Qt-dba7eb104f7788fda36e8a2ecffc8f4c08ec1fae.tar.gz Qt-dba7eb104f7788fda36e8a2ecffc8f4c08ec1fae.tar.bz2 |
Add documentation for the 'when' property of Binding.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qdeclarativebind.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativebind.cpp b/src/declarative/util/qdeclarativebind.cpp index e95a03e..26baa38 100644 --- a/src/declarative/util/qdeclarativebind.cpp +++ b/src/declarative/util/qdeclarativebind.cpp @@ -72,7 +72,7 @@ public: /*! \qmlclass Binding QDeclarativeBind - \since 4.7 + \since 4.7 \brief The Binding element allows arbitrary property bindings to be created. Sometimes it is necessary to bind to a property of an object that wasn't @@ -114,6 +114,19 @@ QDeclarativeBind::~QDeclarativeBind() { } +/*! + \qmlproperty bool Binding::when + + This property holds when the binding is active. + This should be set to an expression that evaluates to true when you want the binding to be active. + + \code + Binding { + target: contactName; property: 'text' + value: name; when: list.ListView.isCurrentItem + } + \endcode +*/ bool QDeclarativeBind::when() const { Q_D(const QDeclarativeBind); |