Skip to content
Snippets Groups Projects
Commit 453d6f5f authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Surpress qt binding warning message until we can depend on qt5.14

parent 74e2b072
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,14 @@ qmlMessageHandler(QtMsgType type, const QMessageLogContext &context, const QStri
std::string localMsg = msg.toStdString();
const char *file = context.file ? context.file : "";
const char *function = context.function ? context.function : "";
// Surpress binding wrning for now, as we can't set restore mode to keep compat with qt 5.10
if (msg.endsWith(
"QML Binding: 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."))
return;
switch (type) {
case QtDebugMsg:
nhlog::qml()->debug("{} ({}:{}, {})", localMsg, file, context.line, function);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment