aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlproperty.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-04-16 11:56:07 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-27 07:44:43 +0000
commit80defcb0c01d747f331719c0f89992d6db660f98 (patch)
treebde0d4519047a9d791ae272e6c65c7772e34fe19 /src/qml/qml/qqmlproperty.cpp
parent0e14a46f60124d9da1101fe7766c7d85e2b72e64 (diff)
Get rid of QQmlBinding::property()
The method is slow and not required anymore Change-Id: I8c2bc6eeedbd15b901b60aa08408fe8c32a81707 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlproperty.cpp')
-rw-r--r--src/qml/qml/qqmlproperty.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp
index cd59c2dd41..94b90e910a 100644
--- a/src/qml/qml/qqmlproperty.cpp
+++ b/src/qml/qml/qqmlproperty.cpp
@@ -768,6 +768,11 @@ static QQmlAbstractBinding *removeOldBinding(QObject *object, int index, QQmlPro
return oldBinding;
}
+QQmlAbstractBinding *QQmlPropertyPrivate::removeBinding(QQmlAbstractBinding *b, QQmlPropertyPrivate::BindingFlag flags)
+{
+ return removeBinding(b->targetObject(), b->targetPropertyIndex(), flags);
+}
+
QQmlAbstractBinding *QQmlPropertyPrivate::removeBinding(QObject *o, int index, QQmlPropertyPrivate::BindingFlag flags)
{
Q_ASSERT(o);