diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-03-11 14:39:40 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-03-17 11:16:58 +0000 |
commit | 6dc0ba50bab2fa72978a7b5ee63dae9d66e8ad40 (patch) | |
tree | 5bfe1b61dda17c50f42852e13a263ff9f75e7199 /src/quick/items/qquickrepeater_p_p.h | |
parent | 84155a8e1a6250d3e4b0949a42464eee5dfef537 (diff) |
Repeater: Don't rely on the createFrom variable
since this breaks for asynchronous models, because item creation order
is not guaranteed. We always have the index
for what item to create, so we do not need it either.
Change-Id: Ib8ce25ac342f5cce4784c56e6a91cf70136566b3
Task-number: QTBUG-38879
Task-number: QTBUG-39001
Task-number: QTBUG-44250
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickrepeater_p_p.h')
-rw-r--r-- | src/quick/items/qquickrepeater_p_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/quick/items/qquickrepeater_p_p.h b/src/quick/items/qquickrepeater_p_p.h index 026633f156..732ba4d5b8 100644 --- a/src/quick/items/qquickrepeater_p_p.h +++ b/src/quick/items/qquickrepeater_p_p.h @@ -63,17 +63,15 @@ public: ~QQuickRepeaterPrivate(); private: - void createItems(); + void requestItems(); QPointer<QQmlInstanceModel> model; QVariant dataSource; QPointer<QObject> dataSourceAsObject; bool ownModel : 1; - bool inRequest : 1; bool dataSourceIsObject : 1; bool delegateValidated : 1; int itemCount; - int createFrom; QVector<QPointer<QQuickItem> > deletables; }; |