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>
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;
} else {
// removed item
removedVisible = true;
- item->attached->emitRemove();
- if (item->attached->delayRemove()) {
+ if (!removals[i].isMove())
+ item->attached->emitRemove();
+
+ if (item->attached->delayRemove() && !removals[i].isMove()) {
item->index = -1;
QObject::connect(item->attached, SIGNAL(delayRemoveChanged()), q, SLOT(destroyRemoved()), Qt::QueuedConnection);
++it;
item = createItem(modelIndex + i);
visibleItems.insert(insertionIdx, item);
- addedItems->append(item);
+ if (!change.isMove())
+ addedItems->append(item);
pos -= item->size() + spacing;
index++;
}
item = createItem(modelIndex + i);
visibleItems.insert(index, item);
- addedItems->append(item);
+ if (!change.isMove())
+ addedItems->append(item);
pos += item->size() + spacing;
++index;
}