diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-10-22 16:13:02 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-10-23 09:17:27 +0000 |
commit | 901b88c6ae6c476a8ad9825d9020325a9a58ab61 (patch) | |
tree | 768f93814377e691d5f58b3f11df58794a0ffd4c /src/qml/types/qqmlbind.cpp | |
parent | bcab320cb96ac8e79e69e2aaa1c1ceb0f04916da (diff) |
Binding: document that property can be grouped if it's a value type
Change-Id: Ie33410027556857fefb87517ebb336c2714bc6c6
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/qml/types/qqmlbind.cpp')
-rw-r--r-- | src/qml/types/qqmlbind.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp index df429e5bc1..bd893bd2f4 100644 --- a/src/qml/types/qqmlbind.cpp +++ b/src/qml/types/qqmlbind.cpp @@ -221,6 +221,23 @@ void QQmlBind::setObject(QObject *obj) \qmlproperty string QtQml::Binding::property The property to be updated. + + This can be a group property if the expression results in accessing a + property of a \l {QML Basic Types}{value type}. For example: + + \qml + Item { + id: item + + property rect rectangle: Qt.rect(0, 0, 200, 200) + } + + Binding { + target: item + property: "rectangle.x" + value: 100 + } + \endqml */ QString QQmlBind::property() const { |