diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-04-20 20:20:01 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-04-21 14:30:09 +0200 |
commit | ab3cecbd2a9c9d8178bebc32955e8e94d30037d8 (patch) | |
tree | 733688876da9fd90e03e69b1cedad8e8bf3aeb4e /src/qml/qml/qqmlpropertybinding_p.h | |
parent | 43743e9faf8505a04b8163a73e213060178d5845 (diff) |
Fix QQmlProperyBinding::createFromCodeString
A QQmlProperyBinding created this way does not have a bound function.
Change the constructor to take the enum instead of a simple bool to make
this error to be less likely in the future.
Change-Id: Ifee47c98c8aab24670c289e923a8e5e28fdf8c2c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertybinding_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertybinding_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlpropertybinding_p.h b/src/qml/qml/qqmlpropertybinding_p.h index 8417a4410a..6220dce06a 100644 --- a/src/qml/qml/qqmlpropertybinding_p.h +++ b/src/qml/qml/qqmlpropertybinding_p.h @@ -132,8 +132,6 @@ public: } private: - QQmlPropertyBinding(QMetaType metaType, QObject *target, QQmlPropertyIndex targetIndex, bool hasBoundFunction); - bool evaluate(QMetaType metaType, void *dataPtr); Q_NEVER_INLINE void handleUndefinedAssignment(QQmlEnginePrivate *ep, void *dataPtr); @@ -153,6 +151,7 @@ private: bool hasBoundFunction; bool isUndefined = false; }; + QQmlPropertyBinding(QMetaType metaType, QObject *target, QQmlPropertyIndex targetIndex, TargetData::BoundFunction hasBoundFunction); QObject *target(); QQmlPropertyIndex targetIndex(); |