diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-16 22:26:44 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-05 08:37:31 +0000 |
commit | 5ef5f1bb9eb282a122906d375e90632c6dcfcb35 (patch) | |
tree | 808088835d3507d61ddf330ed48340df2d905e9b /src/qml/qml/qqmlabstractbinding_p.h | |
parent | 13ec9ab3b898a67403ce0031c4cfdc74d95d5560 (diff) |
Move the target property index into the common base class
This unifies some more code between the different binding
classes
Change-Id: I891dc9358cf9598a0c1e21df8a62d6f8a4193985
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlabstractbinding_p.h')
-rw-r--r-- | src/qml/qml/qqmlabstractbinding_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlabstractbinding_p.h b/src/qml/qml/qqmlabstractbinding_p.h index aa76c9aeba..ccf525ef38 100644 --- a/src/qml/qml/qqmlabstractbinding_p.h +++ b/src/qml/qml/qqmlabstractbinding_p.h @@ -73,7 +73,7 @@ public: // Should return the encoded property index for the binding. Should return this value // even if the binding is not enabled or added to an object. // Encoding is: coreIndex | (valueTypeIndex << 16) - virtual int targetPropertyIndex() const = 0; + int targetPropertyIndex() const { return m_targetIndex; } // Should return the object for the binding. Should return this object even if the // binding is not enabled or added to the object. @@ -124,6 +124,7 @@ private: protected: QFlagPointer<QObject> m_target; + int m_targetIndex; }; QQmlAbstractBinding::Pointer |