Fix a QListViewItem width when spacing is set
authorJani Honkonen <jani.honkonen@digia.com>
Thu, 16 Aug 2012 13:08:35 +0000 (16:08 +0300)
committerQt by Nokia <qt-info@nokia.com>
Sun, 19 Aug 2012 06:52:09 +0000 (08:52 +0200)
commitd2bba5e5535726f277e8dc67b1478168f57b24bd
treed14397cc20ef509ca6910f6582c811010494cebb
parentd4385e48b8566a5587048a3c6d8b2396ba587ed5
Fix a QListViewItem width when spacing is set

The listitem width was calculated incorrectly because spacing was
not considered. This fixes the second part of the reported bug where
spacing is set. Added some tests to catch the issue relating to the
reported bug.

Also added a test to check spacing in general.

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