diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2016-07-14 16:13:05 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-08-02 18:31:09 +0000 |
commit | dbf131fa70dc6269349f3b8d1bedd05203a0c3e4 (patch) | |
tree | ede02821f6e224c34252d4a37e821171c961f903 /src/qml/qml/qqmlbinding_p.h | |
parent | 546679658ed0a39f758a9dcfad8f16a6552da7fa (diff) |
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 <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlbinding_p.h')
-rw-r--r-- | src/qml/qml/qqmlbinding_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |