aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlproperty.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-03-30 11:43:41 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-03-30 15:04:16 +0200
commitb527d8db601c13fe6d0f19cfa24d42c934ba6a78 (patch)
tree7bef0806a241862124133c1405e45028fdf0887f /src/qml/qml/qqmlproperty.cpp
parentc936eee85d43457a5524a55a3f9d41448c7c22a3 (diff)
QQmlMetaTypeData: Purge custom string converters
Those were never exposed anyway. color, date, etc. are handled by the less generic converters in qqmlstringconverters_p.h. Change-Id: I43a94acda08344de742440dd3b956a7077096b11 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r--src/qml/qml/qqmlproperty.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp
index 28aef9c1fd..4d42417b28 100644
--- a/src/qml/qml/qqmlproperty.cpp
+++ b/src/qml/qml/qqmlproperty.cpp
@@ -1406,14 +1406,6 @@ bool QQmlPropertyPrivate::write(
v = value;
if (v.convert(propertyMetaType)) {
ok = true;
- } else if (static_cast<uint>(propertyType) >= QMetaType::User &&
- variantType == QMetaType::QString) {
- QQmlMetaType::StringConverter con = QQmlMetaType::customStringConverter(propertyType);
- if (con) {
- v = con(value.toString());
- if (v.userType() == propertyType)
- ok = true;
- }
}
}
if (!ok) {