summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-08 12:47:13 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-08 12:48:58 (GMT)
commiteda070eb1f0e65366eaece43e5d86baf9fb8cd89 (patch)
tree07eaef2cecf1129937da79c52371124bbf8c6a93 /src/gui/itemviews
parentb6542eb2b1e44aea5d82ad89b8506c567aef18ad (diff)
downloadQt-eda070eb1f0e65366eaece43e5d86baf9fb8cd89.zip
Qt-eda070eb1f0e65366eaece43e5d86baf9fb8cd89.tar.gz
Qt-eda070eb1f0e65366eaece43e5d86baf9fb8cd89.tar.bz2
small code cleanup
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qlistview.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/itemviews/qlistview.cpp b/src/gui/itemviews/qlistview.cpp
index 8b50d0e..03ba641 100644
--- a/src/gui/itemviews/qlistview.cpp
+++ b/src/gui/itemviews/qlistview.cpp
@@ -1100,14 +1100,8 @@ void QListView::paintEvent(QPaintEvent *e)
QPainter painter(d->viewport);
QRect area = e->rect();
- QVector<QModelIndex> toBeRendered;
-// QVector<QRect> rects = e->region().rects();
-// for (int i = 0; i < rects.size(); ++i) {
-// d->intersectingSet(rects.at(i).translated(horizontalOffset(), verticalOffset()));
-// toBeRendered += d->intersectVector;
-// }
d->intersectingSet(e->rect().translated(horizontalOffset(), verticalOffset()), false);
- toBeRendered = d->intersectVector;
+ const QVector<QModelIndex> toBeRendered = d->intersectVector;
const QModelIndex current = currentIndex();
const QModelIndex hover = d->hover;