summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-17 08:42:26 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-17 08:42:26 (GMT)
commita54c18e27bbb14872abd0559c268ba33b1265703 (patch)
tree66cb5706ed20efe88257d95c86f6eede398ba6fe /src/gui/itemviews/qabstractitemview.cpp
parente5b32fbe0efc8b6b688374fde3fc1c01fe685d98 (diff)
downloadQt-a54c18e27bbb14872abd0559c268ba33b1265703.zip
Qt-a54c18e27bbb14872abd0559c268ba33b1265703.tar.gz
Qt-a54c18e27bbb14872abd0559c268ba33b1265703.tar.bz2
ItemViews : Fixed a performance regression whne changing data in the
model This is a part of a bigger patch from 4.6 90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0 Task-number: 256183 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews/qabstractitemview.cpp')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index c3d1bf7..8594968 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -2932,7 +2932,7 @@ void QAbstractItemView::dataChanged(const QModelIndex &topLeft, const QModelInde
}
if (isVisible() && !d->delayedPendingLayout) {
// otherwise the items will be update later anyway
- d->viewport->update(visualRect(topLeft));
+ update(topLeft);
}
return;
}