diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-20 09:38:07 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-05 10:07:50 +0000 |
commit | a775e43ae8872e344924581736c0ab933e12510d (patch) | |
tree | f02d240abb2f2c7ac410f3ae84049923a6f0969e /src/qml/qml/qqmlvaluetypeproxybinding.cpp | |
parent | 6e1a4bf12846e6a68931a924890f54b433a42d1c (diff) |
Replace bindingType() method by a virtual getter
This removes the need to save some bits in the abstract binding
object, and should make it easier to move QQmlAbstractBinding
over to be reference counted.
Change-Id: Ib46cb3217f3dc462f1dcaa6153d90ea2f7401f48
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvaluetypeproxybinding.cpp')
-rw-r--r-- | src/qml/qml/qqmlvaluetypeproxybinding.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlvaluetypeproxybinding.cpp b/src/qml/qml/qqmlvaluetypeproxybinding.cpp index bf6a7d6045..0c8dd04910 100644 --- a/src/qml/qml/qqmlvaluetypeproxybinding.cpp +++ b/src/qml/qml/qqmlvaluetypeproxybinding.cpp @@ -36,7 +36,7 @@ QT_BEGIN_NAMESPACE QQmlValueTypeProxyBinding::QQmlValueTypeProxyBinding(QObject *o, int index) - : QQmlAbstractBinding(ValueTypeProxy), + : QQmlAbstractBinding(), m_bindings(0) { m_target = o; @@ -65,6 +65,11 @@ void QQmlValueTypeProxyBinding::setEnabled(bool e, QQmlPropertyPrivate::WriteFla } } +bool QQmlValueTypeProxyBinding::isValueTypeProxy() const +{ + return true; +} + QQmlAbstractBinding *QQmlValueTypeProxyBinding::binding(int propertyIndex) { QQmlAbstractBinding *binding = m_bindings; |