Fix deprecation warning about QString from character literal
Task-number: QTBUG-80040 Change-Id: I6dddf65582c15b8cb8e42de5dbcc38ebe8d5867a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
02ffe50af4
commit
02b8c8ed16
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue