QHeaderView - minor cleanup in viewportEvent
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Thu, 23 Feb 2012 07:24:21 +0000 (08:24 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 19:52:45 +0000 (20:52 +0100)
commit05e24901a14f1a656359bc649686674a9bca1473
tree5801dcf117a1ded4122ef04a573de59c8ac8023c
parente2f295e27c10a9f3633344427959219caf63753d
QHeaderView - minor cleanup in viewportEvent

This is an improvement to a previous fix with
SHA e62e71162606fec134600955a89b7e0c34a7840b

We actually never want to call resizeSections if the parent is hidden.
Therefore we can both simplify and improve the code with this patch.

When we do show/hide on parent then the visible status is updated
before we get into this code. I have verified the patch on the code
from:

Task-number: QTBUG-14234

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