aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-10-22 08:03:49 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-10-22 20:48:33 +0200
commit9dfbdae2a4d71403a61c9ee1326d54a17e217ab0 (patch)
tree5a25dc9fca68f2e96fa552b894a837a94045b928 /src/qml/types
parent51694e7b5b8feb466e3760ca46bd29c14de7590e (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. Pick-to: 6.2 Change-Id: If1decbe80a469d0d1c634be6e46fb5d6a022a20e Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/types')
-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 b8adcb1d2f..e0bfa5703d 100644
--- a/src/qml/types/qqmlbind.cpp
+++ b/src/qml/types/qqmlbind.cpp
@@ -369,12 +369,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
{