aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-02-03 09:47:32 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-02-03 13:57:51 +0100
commit4e15f2135cdbefd9999a17d4e4fff5ea93679fac (patch)
tree38bd5dbfa1d2dea06b74123ab7a83a621d16f492 /src/qml/types
parent793ba7c0272725a377c1e27e69e84f3abadcbcf5 (diff)
Clarify the Binding.restoreMode warning message
Specify that you need to import QtQml 2.14 and where. Fixes: QTBUG-81787 Change-Id: Ia8e7fb3229971294cbade2791075dcd0b5943fae Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/types')
-rw-r--r--src/qml/types/qqmlbind.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp
index 921d60caa1..02c3b71806 100644
--- a/src/qml/types/qqmlbind.cpp
+++ b/src/qml/types/qqmlbind.cpp
@@ -484,9 +484,11 @@ void QQmlBind::eval()
d->clearPrev();
} else if (!d->restoreModeExplicit) {
qmlWarning(this)
- << "Not restoring previous value because restoreMode has not been set."
- << "This behavior is deprecated."
- << "In Qt < 6.0 the default is Binding.RestoreBinding."
+ << "Not restoring previous value because restoreMode has not been set.\n"
+ << "This behavior is deprecated.\n"
+ << "You have to import QtQml 2.14 after any QtQuick imports and set\n"
+ << "the restoreMode of the binding to fix this warning.\n"
+ << "In Qt < 6.0 the default is Binding.RestoreBinding.\n"
<< "In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.";
}
} else if (d->prevIsVariant) {
@@ -495,10 +497,12 @@ void QQmlBind::eval()
d->clearPrev();
} else if (!d->restoreModeExplicit) {
qmlWarning(this)
- << "Not restoring previous value because restoreMode has not been set."
- << "This behavior is deprecated."
- << "In Qt < 6.0 the default is Binding.RestoreBinding."
- << "In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.";
+ << "Not restoring previous value because restoreMode has not been set.\n"
+ << "This behavior is deprecated.\n"
+ << "You have to import QtQml 2.14 after any QtQuick imports and set\n"
+ << "the restoreMode of the binding to fix this warning.\n"
+ << "In Qt < 6.0 the default is Binding.RestoreBinding.\n"
+ << "In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.\n";
}
}
return;