From 901b88c6ae6c476a8ad9825d9020325a9a58ab61 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 22 Oct 2015 16:13:02 +0200 Subject: [PATCH] Binding: document that property can be grouped if it's a value type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie33410027556857fefb87517ebb336c2714bc6c6 Reviewed-by: Topi Reiniƶ --- src/qml/types/qqmlbind.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 {