summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qheaderview.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/qheaderview.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/qheaderview.cpp')
-rw-r--r--src/gui/itemviews/qheaderview.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/itemviews/qheaderview.cpp b/src/gui/itemviews/qheaderview.cpp
index 5bd82d4..aacfab0 100644
--- a/src/gui/itemviews/qheaderview.cpp
+++ b/src/gui/itemviews/qheaderview.cpp
@@ -1971,20 +1971,19 @@ void QHeaderView::currentChanged(const QModelIndex &current, const QModelIndex &
if (d->orientation == Qt::Horizontal && current.column() != old.column()) {
if (old.isValid() && old.parent() == d->root)
- d->setDirtyRegion(QRect(sectionViewportPosition(old.column()), 0,
+ d->viewport->update(QRect(sectionViewportPosition(old.column()), 0,
sectionSize(old.column()), d->viewport->height()));
if (current.isValid() && current.parent() == d->root)
- d->setDirtyRegion(QRect(sectionViewportPosition(current.column()), 0,
+ d->viewport->update(QRect(sectionViewportPosition(current.column()), 0,
sectionSize(current.column()), d->viewport->height()));
} else if (d->orientation == Qt::Vertical && current.row() != old.row()) {
if (old.isValid() && old.parent() == d->root)
- d->setDirtyRegion(QRect(0, sectionViewportPosition(old.row()),
+ d->viewport->update(QRect(0, sectionViewportPosition(old.row()),
d->viewport->width(), sectionSize(old.row())));
if (current.isValid() && current.parent() == d->root)
- d->setDirtyRegion(QRect(0, sectionViewportPosition(current.row()),
+ d->viewport->update(QRect(0, sectionViewportPosition(current.row()),
d->viewport->width(), sectionSize(current.row())));
}
- d->updateDirtyRegion();
}