diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-09-16 15:27:45 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-09-16 15:27:45 +0200 |
commit | c95b119596c17d8430b24d5e10c4f48fd0a88cb1 (patch) | |
tree | 6afae4fc1d2acc48e1d3715b8b80b9e8347ded20 /src/declarative/graphicsitems/qdeclarativelistview.cpp | |
parent | 7e729ca887f6e106f41acfc9f2081c31b446d114 (diff) | |
parent | f09b12cea1143f1b2763064bb0d3e6592081de2b (diff) |
Merge remote-tracking branch 'origin/5.3' into 5.4
Conflicts:
.qmake.conf
Change-Id: I842b005b9818c9e201a09d51bcf418e2dd0a1ef9
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativelistview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativelistview.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp index a8d97fa7..a2beb4fe 100644 --- a/src/declarative/graphicsitems/qdeclarativelistview.cpp +++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp @@ -3203,8 +3203,10 @@ void QDeclarativeListView::trackedPositionChanged() void QDeclarativeListView::itemsInserted(int modelIndex, int count) { Q_D(QDeclarativeListView); - if (!isComponentComplete()) + if (!isComponentComplete()) { + emit countChanged(); return; + } d->updateUnrequestedIndexes(); d->moveReason = QDeclarativeListViewPrivate::Other; @@ -3356,8 +3358,10 @@ void QDeclarativeListView::itemsInserted(int modelIndex, int count) void QDeclarativeListView::itemsRemoved(int modelIndex, int count) { Q_D(QDeclarativeListView); - if (!isComponentComplete()) + if (!isComponentComplete()) { + emit countChanged(); return; + } d->moveReason = QDeclarativeListViewPrivate::Other; d->updateUnrequestedIndexes(); d->itemCount -= count; |