summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qtreeview.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-03-30 13:26:12 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-03-30 13:27:19 (GMT)
commit90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0 (patch)
tree9dbab079736b561b0be3f228f687da093c18ed2c /src/gui/itemviews/qtreeview.cpp
parent5a10e8f4fa34243499e241fded168bc45de54867 (diff)
downloadQt-90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0.zip
Qt-90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0.tar.gz
Qt-90cdbf8bd409652fd1e28adcd7f02fc1fae2c1c0.tar.bz2
Remove all call in itemviews to set/updateDirtyRegion
Now we directly call viewport->update Task-number: 248850 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews/qtreeview.cpp')
-rw-r--r--src/gui/itemviews/qtreeview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp
index 2aa0c57..6b222d4 100644
--- a/src/gui/itemviews/qtreeview.cpp
+++ b/src/gui/itemviews/qtreeview.cpp
@@ -1140,7 +1140,7 @@ void QTreeView::scrollTo(const QModelIndex &index, ScrollHint hint)
if (rect.isEmpty()) {
// nothing to do
} else if (hint == EnsureVisible && area.contains(rect)) {
- d->setDirtyRegion(rect);
+ d->viewport->update(rect);
// nothing to do
} else {
bool above = (hint == EnsureVisible