From dbf131fa70dc6269349f3b8d1bedd05203a0c3e4 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 14 Jul 2016 16:13:05 +0200 Subject: QML: Add specialized binding for QObject* properties In it we can cache the meta-type for the specific QObject subclass of the property type. This reduces the number of calls to QMetaType. Change-Id: Ie3774395c971bc33af58a8290453b19631939ea8 Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlbinding_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlbinding_p.h') diff --git a/src/qml/qml/qqmlbinding_p.h b/src/qml/qml/qqmlbinding_p.h index 0c797d7df2..67fbeb693e 100644 --- a/src/qml/qml/qqmlbinding_p.h +++ b/src/qml/qml/qqmlbinding_p.h @@ -119,7 +119,7 @@ private: inline bool enabledFlag() const; inline void setEnabledFlag(bool); - static QQmlBinding *newBinding(const QQmlPropertyData *property); + static QQmlBinding *newBinding(QQmlEnginePrivate *engine, const QQmlPropertyData *property); }; bool QQmlBinding::updatingFlag() const -- cgit v1.2.3