summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-11-23 12:34:37 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-11-23 12:37:38 (GMT)
commitc7f14f778b3e974631d29cb1ad87891f6b350f61 (patch)
tree4091ab9e44459c5e9223f9541d9ae8fbd1941dac /tests
parentc275ba17d263f9108ee26e32a0f89b0c57e526e0 (diff)
downloadQt-c7f14f778b3e974631d29cb1ad87891f6b350f61.zip
Qt-c7f14f778b3e974631d29cb1ad87891f6b350f61.tar.gz
Qt-c7f14f778b3e974631d29cb1ad87891f6b350f61.tar.bz2
Fixes qlistview failing autotest: QTBUG_5877_skippingItemInPageDownUp
Reviewed-by: ogoffart
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlistview/tst_qlistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qlistview/tst_qlistview.cpp b/tests/auto/qlistview/tst_qlistview.cpp
index 605b3e3..602da61 100644
--- a/tests/auto/qlistview/tst_qlistview.cpp
+++ b/tests/auto/qlistview/tst_qlistview.cpp
@@ -1898,7 +1898,7 @@ void tst_QListView::taskQTBUG_5877_skippingItemInPageDownUp()
QTest::qWaitForWindowShown(&vu);
int itemHeight = vu.visualRect(model.index(0, 0)).height();
- int visibleRowCount = vu.height() / itemHeight;
+ int visibleRowCount = vu.viewport()->height() / itemHeight;
int scrolledRowCount = visibleRowCount - 1;
for (int i = 0; i < currentItemIndexes.size(); ++i) {