aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlobjectcreator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
-rw-r--r--src/qml/qml/qqmlobjectcreator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp
index 809d1c4976..dc25aa9f0a 100644
--- a/src/qml/qml/qqmlobjectcreator.cpp
+++ b/src/qml/qml/qqmlobjectcreator.cpp
@@ -484,7 +484,7 @@ void QQmlObjectCreator::setPropertyValue(const QQmlPropertyData *property, const
break;
case QMetaType::QColor: {
QVariant data;
- if (QQml_valueTypeProvider()->createValueFromString(
+ if (QQml_valueTypeProvider()->createValueType(
QMetaType::QColor, compilationUnit->bindingValueAsString(binding), &data)) {
property->writeProperty(_qobject, data.data(), propertyWriteFlags);
}
@@ -567,7 +567,7 @@ void QQmlObjectCreator::setPropertyValue(const QQmlPropertyData *property, const
case QMetaType::QVector4D:
case QMetaType::QQuaternion: {
QVariant result;
- bool ok = QQml_valueTypeProvider()->createValueFromString(
+ bool ok = QQml_valueTypeProvider()->createValueType(
propertyType, compilationUnit->bindingValueAsString(binding), &result);
assertOrNull(ok);
Q_UNUSED(ok);