summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-23 23:58:48 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-23 23:59:46 +0100
commit453d6f5f645fa894b60fcae898297b976a73c6b4 (patch)
tree51d30c34d096a6591aaa3f7ad6a22565dbb41944 /src
parentMinor tweak to one instance of QSettings not necessarily using the same setti... (diff)
downloadnheko-453d6f5f645fa894b60fcae898297b976a73c6b4.tar.xz
Surpress qt binding warning message until we can depend on qt5.14
Diffstat (limited to 'src')
-rw-r--r--src/Logging.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Logging.cpp b/src/Logging.cpp

index 126b3781..5d64a630 100644 --- a/src/Logging.cpp +++ b/src/Logging.cpp
@@ -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);