diff options
Diffstat (limited to 'src/qml/jsruntime/qv4qobjectwrapper.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4qobjectwrapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp index 5df7323a45..62a3c9f025 100644 --- a/src/qml/jsruntime/qv4qobjectwrapper.cpp +++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp @@ -523,7 +523,8 @@ void QObjectWrapper::setProperty(ExecutionEngine *engine, QObject *object, QQmlP targetObject->metaObject()->metacall(targetObject, QMetaObject::BindableProperty, targetIndex.coreIndex(), &argv); bool ok = bindable.setBinding(binding); if (!ok) { - auto error = QStringLiteral("Failed to set binding on %1::%2.").arg(object->metaObject()->className(), property->name(object)); + auto error = QStringLiteral("Failed to set binding on %1::%2."). + arg(QString::fromUtf8(object->metaObject()->className()), property->name(object)); scope.engine->throwError(error); } } else { |
