aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvaluetypeproxybinding.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-04-16 22:26:44 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-05 08:37:31 +0000
commit5ef5f1bb9eb282a122906d375e90632c6dcfcb35 (patch)
tree808088835d3507d61ddf330ed48340df2d905e9b /src/qml/qml/qqmlvaluetypeproxybinding.cpp
parent13ec9ab3b898a67403ce0031c4cfdc74d95d5560 (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/qqmlvaluetypeproxybinding.cpp')
-rw-r--r--src/qml/qml/qqmlvaluetypeproxybinding.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/qml/qml/qqmlvaluetypeproxybinding.cpp b/src/qml/qml/qqmlvaluetypeproxybinding.cpp
index a12699facf..bf6a7d6045 100644
--- a/src/qml/qml/qqmlvaluetypeproxybinding.cpp
+++ b/src/qml/qml/qqmlvaluetypeproxybinding.cpp
@@ -37,10 +37,10 @@ QT_BEGIN_NAMESPACE
QQmlValueTypeProxyBinding::QQmlValueTypeProxyBinding(QObject *o, int index)
: QQmlAbstractBinding(ValueTypeProxy),
- m_targetIndex(index),
m_bindings(0)
{
m_target = o;
+ m_targetIndex = index;
}
QQmlValueTypeProxyBinding::~QQmlValueTypeProxyBinding()
@@ -104,9 +104,4 @@ void QQmlValueTypeProxyBinding::removeBindings(quint32 mask)
}
}
-int QQmlValueTypeProxyBinding::targetPropertyIndex() const
-{
- return m_targetIndex;
-}
-
QT_END_NAMESPACE