From 02b8c8ed160014c976ca3dd5266d1ef4f557a774 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 14 Nov 2019 12:50:49 +0100 Subject: [PATCH] Fix deprecation warning about QString from character literal Task-number: QTBUG-80040 Change-Id: I6dddf65582c15b8cb8e42de5dbcc38ebe8d5867a Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmlpropertyvalidator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/qml/qqmlpropertyvalidator.cpp b/src/qml/qml/qqmlpropertyvalidator.cpp index ef85d6e4d9..c75055a3b0 100644 --- a/src/qml/qml/qqmlpropertyvalidator.cpp +++ b/src/qml/qml/qqmlpropertyvalidator.cpp @@ -731,7 +731,7 @@ QQmlJS::DiagnosticMessage QQmlPropertyValidator::validateObjectBinding(QQmlPrope return qQmlCompileError(binding->location, tr("Cannot assign value of type \"%1\" to property \"%2\", expecting \"%3\"") .arg(rhsType()) .arg(propertyName) - .arg(typeName)); + .arg(QString::fromUtf8(typeName))); } else if (QQmlValueTypeFactory::isValueType(propType)) { return qQmlCompileError(binding->location, tr("Cannot assign value of type \"%1\" to property \"%2\", expecting an object") .arg(rhsType()).arg(propertyName));