aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-10-22 08:03:49 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-22 21:41:30 +0000
commit8df4a73f5def2b8496ffee00e119657f54f261fb (patch)
tree6b45f7c0f2628742fb954adaa3403befc1c0596f /src
parent397c2b11158cf073d6d876b14f74053b1988073f (diff)
Update documentation for QQmlBind::restoreMode
The sections about the warning and reliance on earlier defaults were outdated. Replace it with a note saying that you shouldn't use it. Change-Id: If1decbe80a469d0d1c634be6e46fb5d6a022a20e Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 9dfbdae2a4d71403a61c9ee1326d54a17e217ab0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/qml/types/qqmlbind.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp
index 8e74711776..17e3e88f9b 100644
--- a/src/qml/types/qqmlbind.cpp
+++ b/src/qml/types/qqmlbind.cpp
@@ -368,12 +368,8 @@ void QQmlBind::setDelayed(bool delayed)
The default value is \c Binding.RestoreBindingOrValue.
- If you rely on any specific behavior regarding the restoration of plain
- values when bindings get disabled you should migrate to explicitly set the
- restoreMode.
-
- Reliance on a restoreMode that doesn't restore the previous binding or value
- for a specific property results in a run-time warning.
+ \note This property exists for backwards compatibility with earlier versions
+ of Qt. Don't use it in new code.
*/
QQmlBind::RestorationMode QQmlBind::restoreMode() const
{