QHeaderView - remove sectionCount variable
authorThorbjørn Lund Martsum <tmartsum@gmail.com>
Mon, 27 Feb 2012 09:56:42 +0000 (10:56 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 23:05:38 +0000 (00:05 +0100)
commite500946de964649b03fa9d73dd98e58a973bc956
tree01e13251f1a81308404cc00c272d28d044df9b76
parent6363672163a8d40c685c0120f76b261685ee34be
QHeaderView - remove sectionCount variable

A previous patch ensures that we have exactly one section in a Span.
( see SHA : b800d8b94a7861ecf8853621f6556fca186fb5b7 )

Therefore we no longer need the sectionCount variable. We have
assess to it through the sectionSpan.count.  To keep this patch
quite simple the variable sectionCount has been changed to a
function returning the count value.

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