aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsggridview.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2011-09-01 13:52:23 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-02 04:17:44 +0200
commit23c826303436f438aaac6f3edc87e1d5b22ee549 (patch)
tree8472c1b737c793000ff89997d7e1e8adc1b4f656 /src/declarative/items/qsggridview.cpp
parent6080375fed90c09bfabb96a0319817f14f693b05 (diff)
Don't emit attached add() and remove() for moved items
Regression from 6fbc4b7e7e5aed8739ca1143e0fc1e38b8c8e17a Change-Id: I0bcd55548dca1559deea0d66112e7cdeb3da4ed9 Reviewed-on: http://codereview.qt.nokia.com/4023 Reviewed-by: Bea Lam <bea.lam@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src/declarative/items/qsggridview.cpp')
-rw-r--r--src/declarative/items/qsggridview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/items/qsggridview.cpp b/src/declarative/items/qsggridview.cpp
index 50ea86ab04..1d4e8313b4 100644
--- a/src/declarative/items/qsggridview.cpp
+++ b/src/declarative/items/qsggridview.cpp
@@ -1792,7 +1792,8 @@ bool QSGGridViewPrivate::applyInsertionChange(const QDeclarativeChangeSet::Inser
if (!item)
item = createItem(modelIndex + i);
visibleItems.insert(index, item);
- addedItems->append(item);
+ if (!change.isMove())
+ addedItems->append(item);
colPos += colSize();
if (colPos > colSize() * (columns-1)) {
colPos = 0;