summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-11-17 17:38:37 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-11-17 17:38:50 (GMT)
commita61adccf96a8ceefbf1150966adda3f6d226ec6d (patch)
tree7f01b588860f34b27f9c68146b603948d391bb8c /src/gui/itemviews
parent334b2a93d461ae9a8b258fff1971fb775b13bb68 (diff)
parentecc202c0410125c944f156b5d0de67f093c02723 (diff)
downloadQt-a61adccf96a8ceefbf1150966adda3f6d226ec6d.zip
Qt-a61adccf96a8ceefbf1150966adda3f6d226ec6d.tar.gz
Qt-a61adccf96a8ceefbf1150966adda3f6d226ec6d.tar.bz2
Merge oslo-staging-2/4.6 into upstream/4.6
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qlistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemviews/qlistview.cpp b/src/gui/itemviews/qlistview.cpp
index 15db9a6..c6622cb 100644
--- a/src/gui/itemviews/qlistview.cpp
+++ b/src/gui/itemviews/qlistview.cpp
@@ -972,9 +972,9 @@ void QListView::paintEvent(QPaintEvent *e)
option.rect = visualRect(*it);
if (flow() == TopToBottom)
- option.rect.setWidth(qMin(viewport()->size().width() - 2 * d->spacing(), option.rect.width()));
+ option.rect.setWidth(qMin(d->contentsSize().width() - 2 * d->spacing(), option.rect.width()));
else
- option.rect.setHeight(qMin(viewport()->size().height() - 2 * d->spacing(), option.rect.height()));
+ option.rect.setHeight(qMin(d->contentsSize().height() - 2 * d->spacing(), option.rect.height()));
option.state = state;
if (selections && selections->isSelected(*it))