aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlproperty.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-04-14 15:48:49 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-26 15:18:46 +0000
commitf65f0d4e1da39a5f5fa92e0b8d9ba4ad346d78ef (patch)
tree661d5f2556aa16b0a65f9b1030aa23b6717061e6 /src/qml/qml/qqmlproperty.cpp
parent65f0629144cb6169707c425fd3def9915dec3e45 (diff)
Cleanup
Rename QQmlAbstractBinding::object() and propertyIndex() to targetObject() and targetPropertyIndex() Change-Id: Ic50da69e7a7c6412b5abb36f433be046e6566763 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r--src/qml/qml/qqmlproperty.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp
index 3ab312036b..25be1b05c2 100644
--- a/src/qml/qml/qqmlproperty.cpp
+++ b/src/qml/qml/qqmlproperty.cpp
@@ -732,8 +732,8 @@ QQmlPropertyPrivate::setBinding(const QQmlProperty &that,
// In the case that the new binding is provided, we must target the property it
// is associated with. If we don't do this, retargetBinding() can fail.
- QObject *object = newBinding->object();
- int pi = newBinding->propertyIndex();
+ QObject *object = newBinding->targetObject();
+ int pi = newBinding->targetPropertyIndex();
int core;
int vt = QQmlPropertyData::decodeValueTypePropertyIndex(pi, &core);
@@ -776,7 +776,7 @@ QQmlPropertyPrivate::binding(QObject *object, int coreIndex, int valueTypeIndex)
return 0;
QQmlAbstractBinding *binding = data->bindings;
- while (binding && binding->propertyIndex() != coreIndex)
+ while (binding && binding->targetPropertyIndex() != coreIndex)
binding = binding->nextBinding();
if (binding && valueTypeIndex != -1) {
@@ -852,7 +852,7 @@ QQmlPropertyPrivate::setBinding(QObject *object, int coreIndex, int valueTypeInd
if (data && data->hasBindingBit(coreIndex)) {
binding = data->bindings;
- while (binding && binding->propertyIndex() != coreIndex)
+ while (binding && binding->targetPropertyIndex() != coreIndex)
binding = binding->nextBinding();
}
@@ -869,11 +869,11 @@ QQmlPropertyPrivate::setBinding(QObject *object, int coreIndex, int valueTypeInd
}
if (newBinding) {
- if (newBinding->propertyIndex() != index || newBinding->object() != object)
+ if (newBinding->targetPropertyIndex() != index || newBinding->targetObject() != object)
newBinding->retargetBinding(object, index);
- Q_ASSERT(newBinding->propertyIndex() == index);
- Q_ASSERT(newBinding->object() == object);
+ Q_ASSERT(newBinding->targetPropertyIndex() == index);
+ Q_ASSERT(newBinding->targetObject() == object);
newBinding->addToObject();
newBinding->setEnabled(true, flags);
@@ -916,7 +916,7 @@ QQmlPropertyPrivate::setBindingNoEnable(QObject *object, int coreIndex, int valu
if (data && data->hasBindingBit(coreIndex)) {
binding = data->bindings;
- while (binding && binding->propertyIndex() != coreIndex)
+ while (binding && binding->targetPropertyIndex() != coreIndex)
binding = binding->nextBinding();
}
@@ -931,11 +931,11 @@ QQmlPropertyPrivate::setBindingNoEnable(QObject *object, int coreIndex, int valu
binding->removeFromObject();
if (newBinding) {
- if (newBinding->propertyIndex() != index || newBinding->object() != object)
+ if (newBinding->targetPropertyIndex() != index || newBinding->targetObject() != object)
newBinding->retargetBinding(object, index);
- Q_ASSERT(newBinding->propertyIndex() == index);
- Q_ASSERT(newBinding->object() == object);
+ Q_ASSERT(newBinding->targetPropertyIndex() == index);
+ Q_ASSERT(newBinding->targetObject() == object);
newBinding->addToObject();
}