diff options
author | Sze Howe Koh <szehowe.koh@gmail.com> | 2024-01-10 16:32:36 +0800 |
---|---|---|
committer | Sze Howe Koh <szehowe.koh@gmail.com> | 2024-01-15 20:33:55 +0800 |
commit | 20158226892fc4172114f1bbca793aa8a0d4279f (patch) | |
tree | f3df38c0da023cbc022cbf579f92e04fdf2abb5b /src/qml/types/qqmlbind.cpp | |
parent | 6a814d4737df335593a85cfdd70bfb992a22334a (diff) |
Doc: Clarify that the compact Binding {} declarations need an id
Change-Id: Icef07f23e78c48e7321431e51c5431a8ad8b6c4d
Pick-to: 6.7 6.6 6.5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/types/qqmlbind.cpp')
-rw-r--r-- | src/qml/types/qqmlbind.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp index 1386c3ae39..b59c4fd5a9 100644 --- a/src/qml/types/qqmlbind.cpp +++ b/src/qml/types/qqmlbind.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2016 The Qt Company Ltd. +// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #include "qqmlbind_p.h" @@ -430,9 +430,9 @@ void QQmlBind::setWhen(bool v) /*! \qmlproperty QtObject QtQml::Binding::target - The object to be updated. You only need to use this property if you can't - supply the binding target declaratively. The following two pieces of code - are equivalent. + The object to be updated. You need to use this property if the binding target + does not have an \c id attribute (for example, when the target is a singleton). + Otherwise, the following two pieces of code are equivalent: \qml Binding { contactName.text: name } |