diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-12-01 14:01:13 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-23 07:23:39 +0100 |
commit | 347f84e5aca9423536cb0cd7a2eafaf836a72212 (patch) | |
tree | cdb68529b37190be7f477d7775f8011d39080b36 /src/quick/items/items.pri | |
parent | 932a195dbaae92ce87b98beca29a25c9b8d6cf5b (diff) |
Minimize the number of objects created per item in VisualDataModel.
Derive from QDeclarativeContext and reference count the context object
instead of parenting it to the context. Combined with a weak
persistent v8 handle the allows the context object to be returned by
javascript accessors instead of creating a new instance for every use.
In addition to the efficiency advantages of creating fewer objects,
routing all data access through a single object means that object can
also persist data instead of just acting as a proxy.
Change-Id: I107dc8c901f16f2a4b420ff1cbffa7a6be27de89
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/quick/items/items.pri')
-rw-r--r-- | src/quick/items/items.pri | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/items.pri b/src/quick/items/items.pri index 85ef591ab9..28a32fcc48 100644 --- a/src/quick/items/items.pri +++ b/src/quick/items/items.pri @@ -39,6 +39,7 @@ HEADERS += \ $$PWD/qquicklistview_p.h \ $$PWD/qquickvisualadaptormodel_p.h \ $$PWD/qquickvisualdatamodel_p.h \ + $$PWD/qquickvisualdatamodel_p_p.h \ $$PWD/qquickvisualitemmodel_p.h \ $$PWD/qquickrepeater_p.h \ $$PWD/qquickrepeater_p_p.h \ |