diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-12 07:33:06 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-17 00:20:46 (GMT) |
commit | 4613955f735837d8007f5558db6a07ec5efb9ab5 (patch) | |
tree | 93dc06ae6f9809df003cad39aa37a77dc4bc0790 /src/declarative/qml/qdeclarativeengine_p.h | |
parent | a88c755e511d3aea726bd0e096621054af18ce01 (diff) | |
download | Qt-4613955f735837d8007f5558db6a07ec5efb9ab5.zip Qt-4613955f735837d8007f5558db6a07ec5efb9ab5.tar.gz Qt-4613955f735837d8007f5558db6a07ec5efb9ab5.tar.bz2 |
Optimization: Use id notifier for QtScript bindings
Diffstat (limited to 'src/declarative/qml/qdeclarativeengine_p.h')
-rw-r--r-- | src/declarative/qml/qdeclarativeengine_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeengine_p.h b/src/declarative/qml/qdeclarativeengine_p.h index c73a758..fb8c5e7 100644 --- a/src/declarative/qml/qdeclarativeengine_p.h +++ b/src/declarative/qml/qdeclarativeengine_p.h @@ -144,10 +144,13 @@ public: struct CapturedProperty { CapturedProperty(QObject *o, int c, int n) - : object(o), coreIndex(c), notifyIndex(n) {} + : object(o), coreIndex(c), notifier(0), notifyIndex(n) {} + CapturedProperty(QDeclarativeNotifier *n) + : object(0), coreIndex(-1), notifier(n), notifyIndex(-1) {} QObject *object; int coreIndex; + QDeclarativeNotifier *notifier; int notifyIndex; }; bool captureProperties; |