aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2019-12-04 17:04:25 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2019-12-10 12:48:50 +0100
commitfd2dab5640b7d1bd9fd5f5cd15dacfacc2fb7e69 (patch)
tree882e1aecc4d027deb0950ee2b88c903f55742cec /src/qml/types
parent61d0128cee21ed75863d12491ac2fee58df094ec (diff)
Make clear how to fix QML binding restoreMode warning
Change-Id: Ia0cc6bc5273f84709b4e649627f074ae6bccece6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/types')
-rw-r--r--src/qml/types/qqmlbind.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp
index 921d60caa1..f74a9f245c 100644
--- a/src/qml/types/qqmlbind.cpp
+++ b/src/qml/types/qqmlbind.cpp
@@ -486,6 +486,7 @@ void QQmlBind::eval()
qmlWarning(this)
<< "Not restoring previous value because restoreMode has not been set."
<< "This behavior is deprecated."
+ << "You have to import QtQml 2.15 and set the restoreMode of the binding to fix this warning."
<< "In Qt < 6.0 the default is Binding.RestoreBinding."
<< "In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.";
}
@@ -497,6 +498,7 @@ void QQmlBind::eval()
qmlWarning(this)
<< "Not restoring previous value because restoreMode has not been set."
<< "This behavior is deprecated."
+ << "You have to import QtQml 2.15 and set the restoreMode of the binding to fix this warning."
<< "In Qt < 6.0 the default is Binding.RestoreBinding."
<< "In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.";
}