diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-14 12:50:49 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-11-18 10:37:28 +0100 |
commit | 02b8c8ed160014c976ca3dd5266d1ef4f557a774 (patch) | |
tree | c6743416b2bc516559e01c5c7997d4332f4f6498 | |
parent | 02ffe50af41526f604ae61d41bf2150037d67473 (diff) |
Fix deprecation warning about QString from character literal
Task-number: QTBUG-80040
Change-Id: I6dddf65582c15b8cb8e42de5dbcc38ebe8d5867a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/qml/qml/qqmlpropertyvalidator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |