QHeaderView - minor bug in visualIndexAt
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Fri, 3 Feb 2012 19:02:46 +0000 (20:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Feb 2012 23:27:44 +0000 (00:27 +0100)
commit73a5bc2aac7638438dfde260a4246359a06e89ae
tree09bf7162ee468db9dd07ab1b500ad75c32c9c90c
parent2b42987d0ad46e0d51088bf7787316d9e66a1f81
QHeaderView - minor bug in visualIndexAt

This fixes a minor bug in VisualIndex triggered when calling
resizeSection with size 0 (but not hideSection).

It is mostly cosmetics - however hopefully there will soon
be a minor refactoring and there is really no need to make
strange code to keep a semantic bug.

However it is also doubtful to make a semantic change
while refactoring.

Change-Id: Ide153e421fd7a634062cb74867f4a49da4bf9cd6
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qheaderview.cpp
tests/auto/widgets/itemviews/qheaderview/tst_qheaderview.cpp