diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-09-17 21:03:57 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-09-18 01:37:25 +0200 |
commit | e46a92d178129e6772d8e8db4632b3346ddacac4 (patch) | |
tree | 8d777b3f14d520572f43a861a801c7803055f05a /src/declarative/graphicsitems/qdeclarativegridview.cpp | |
parent | 1fae8cb48c6d003681fbf521a0ed8c24c84bf9ad (diff) | |
parent | c95b119596c17d8430b24d5e10c4f48fd0a88cb1 (diff) |
Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index c3e27e74..14e77ec6 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -2759,8 +2759,10 @@ void QDeclarativeGridView::trackedPositionChanged() void QDeclarativeGridView::itemsInserted(int modelIndex, int count) { Q_D(QDeclarativeGridView); - if (!isComponentComplete()) + if (!isComponentComplete()) { + emit countChanged(); return; + } int index = d->visibleItems.count() ? d->mapFromModel(modelIndex) : 0; if (index < 0) { @@ -2895,8 +2897,10 @@ void QDeclarativeGridView::itemsInserted(int modelIndex, int count) void QDeclarativeGridView::itemsRemoved(int modelIndex, int count) { Q_D(QDeclarativeGridView); - if (!isComponentComplete()) + if (!isComponentComplete()) { + emit countChanged(); return; + } d->itemCount -= count; bool currentRemoved = d->currentIndex >= modelIndex && d->currentIndex < modelIndex + count; |