diff options
Diffstat (limited to 'src/qml/qml/qqmlabstractbinding_p.h')
-rw-r--r-- | src/qml/qml/qqmlabstractbinding_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlabstractbinding_p.h b/src/qml/qml/qqmlabstractbinding_p.h index d4cb4e0e9e..aa76c9aeba 100644 --- a/src/qml/qml/qqmlabstractbinding_p.h +++ b/src/qml/qml/qqmlabstractbinding_p.h @@ -77,7 +77,7 @@ public: // Should return the object for the binding. Should return this object even if the // binding is not enabled or added to the object. - virtual QObject *targetObject() const = 0; + QObject *targetObject() const { return m_target.data(); } virtual void setEnabled(bool e, QQmlPropertyPrivate::WriteFlags f = QQmlPropertyPrivate::DontRemoveBinding) = 0; @@ -121,6 +121,9 @@ private: // This saves a compiler-generated pointer to a compiler-generated vTable, and thus reduces // the binding object size by sizeof(void*). qintptr m_nextBindingPtr; + +protected: + QFlagPointer<QObject> m_target; }; QQmlAbstractBinding::Pointer |