diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-11-03 15:52:13 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 01:14:53 +0100 |
commit | 5f5aba5b6e690ca54e66f41b93474f7e67e83c8b (patch) | |
tree | 874c9944c5a2b5b0b717da2bd8b018ce291a0ff7 /src/declarative/items/qquickitemview_p_p.h | |
parent | 01479573b98747b39833ab09e2cd9ee618ad2a0f (diff) |
Non-blocking view delegate instantiation.
Task-number: QTBUG-21792
Change-Id: I29a4028cd24eb55d4768aacaa3abbd1786061398
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'src/declarative/items/qquickitemview_p_p.h')
-rw-r--r-- | src/declarative/items/qquickitemview_p_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/items/qquickitemview_p_p.h b/src/declarative/items/qquickitemview_p_p.h index ca4c0ceba9..4db274e045 100644 --- a/src/declarative/items/qquickitemview_p_p.h +++ b/src/declarative/items/qquickitemview_p_p.h @@ -133,7 +133,7 @@ public: void refill(qreal from, qreal to, bool doBuffer = false); void mirrorChange(); - FxViewItem *createItem(int modelIndex); + FxViewItem *createItem(int modelIndex, bool asynchronous = false); virtual void releaseItem(FxViewItem *item); QQuickItem *createHighlightItem(); @@ -173,6 +173,7 @@ public: FxViewItem *trackedItem; QHash<QQuickItem*,int> unrequestedItems; int requestedIndex; + FxViewItem *requestedItem; QQuickItemViewChangeSet currentChanges; // XXX split into struct @@ -193,7 +194,6 @@ public: bool ownModel : 1; bool wrap : 1; - bool lazyRelease : 1; bool deferredRelease : 1; bool inApplyModelChanges : 1; bool inViewportMoved : 1; @@ -203,6 +203,9 @@ public: bool autoHighlight : 1; bool highlightRangeStartValid : 1; bool highlightRangeEndValid : 1; + bool fillCacheBuffer : 1; + bool inRequest : 1; + bool requestedAsync : 1; protected: virtual Qt::Orientation layoutOrientation() const = 0; |