diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-18 16:17:42 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-23 14:54:47 +0200 |
commit | 39b5be920cf65979df669d02a3410a7396be6ada (patch) | |
tree | 26f91a48ed294e48b907e0a8a98b2ad6baf187f0 /src/qml/qml/qqmlglobal_p.h | |
parent | 55158d25127173f4a96f2fa70fa7603fa81f8bd9 (diff) |
Eliminate QQmlValueTypeProvider::storeValueType()
It was only used for QColor. The string representation of QColor was
funneled through the color provider to get a numerical RGBA value and
that one was passed to storeValueType() which would create a QColor
object. The RGBA value was retrieved by creating a QColor object. We
can just directly create the QColor from the string, and we can use the
generic create() method for that.
Change-Id: If36775830882237e5e36f748872ce23530c3bb71
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlglobal_p.h')
-rw-r--r-- | src/qml/qml/qqmlglobal_p.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlglobal_p.h b/src/qml/qml/qqmlglobal_p.h index 722a3f4989..5caa8e7d29 100644 --- a/src/qml/qml/qqmlglobal_p.h +++ b/src/qml/qml/qqmlglobal_p.h @@ -229,13 +229,11 @@ public: QVariant createVariantFromJsObject(int, const QJSValue &, bool *); bool equalValueType(int, const void *, const QVariant&); - bool storeValueType(int, const void *, void *, size_t); bool readValueType(const QVariant&, void *, int); bool writeValueType(int, const void *, QVariant&); private: virtual bool create(int, const QJSValue ¶ms, QVariant *); - virtual bool store(int, const void *, void *, size_t); friend Q_QML_PRIVATE_EXPORT void QQml_addValueTypeProvider(QQmlValueTypeProvider *); friend Q_QML_PRIVATE_EXPORT void QQml_removeValueTypeProvider(QQmlValueTypeProvider *); |