mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Surpress qt binding warning message until we can depend on qt5.14
This commit is contained in:
parent
74e2b0725d
commit
453d6f5f64
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,14 @@ qmlMessageHandler(QtMsgType type, const QMessageLogContext &context, const QStri
|
||||||
std::string localMsg = msg.toStdString();
|
std::string localMsg = msg.toStdString();
|
||||||
const char *file = context.file ? context.file : "";
|
const char *file = context.file ? context.file : "";
|
||||||
const char *function = context.function ? context.function : "";
|
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) {
|
switch (type) {
|
||||||
case QtDebugMsg:
|
case QtDebugMsg:
|
||||||
nhlog::qml()->debug("{} ({}:{}, {})", localMsg, file, context.line, function);
|
nhlog::qml()->debug("{} ({}:{}, {})", localMsg, file, context.line, function);
|
||||||
|
|
Loading…
Reference in a new issue