Fix QListWidget scrolling with keys when there are hidden items
authorJani Honkonen <jani.honkonen@digia.com>
Wed, 1 Aug 2012 11:55:51 +0000 (14:55 +0300)
committerQt by Nokia <qt-info@nokia.com>
Sun, 19 Aug 2012 06:51:57 +0000 (08:51 +0200)
commitd4385e48b8566a5587048a3c6d8b2396ba587ed5
tree63f0a0d5ddf344025d4b1eb3381334599a3b808c
parentf20472efa7e4a80b5aa1df3b98778b92cf339220
Fix QListWidget scrolling with keys when there are hidden items

If the selected item is scrolled with keyboard keys the selected item
will go outside the visible area. The scrolling did not take hidden
items into account when calculating the amount to be scrolled.

Task-number: QTBUG-21804
Change-Id: I63da0248cec43be464898f9dc8167e739f00ccd0
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qlistview.cpp
tests/auto/widgets/itemviews/qlistview/tst_qlistview.cpp