QHeaderView - preventing negative section sizes.
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Tue, 10 Jan 2012 18:33:14 +0000 (19:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 01:16:08 +0000 (02:16 +0100)
commit96f1fe8855082017fbbecccdab1eb11fd8c1f870
tree24017d87ba81ee6363c0d3496881738f9bbc4d37
parent85c08e06c81d9e6cd1bb29f13357d63c1a93599b
QHeaderView - preventing negative section sizes.

This patch removes the posibility to call resizeSection
with negative sizes.

Sections with negative sizes affect the other sections,
and it does not seem to have a useful, well-defined semantic.

The length can also become negative - and visualIndexAt
work strange.

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