Fix comments to refer to the root, not the top level.

Change-Id: If0fc8a18973a2fe15197437734f15f3d445d1b6c
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Stephen Kelly 2012-03-07 23:35:51 +01:00 committed by Qt by Nokia
parent 3dffbe8c81
commit 5c632708da

View File

@ -1707,7 +1707,7 @@ void QHeaderView::sectionsInserted(const QModelIndex &parent,
{
Q_D(QHeaderView);
if (parent != d->root)
return; // we only handle changes in the top level
return; // we only handle changes in the root level
int oldCount = d->sectionCount();
d->invalidateCachedSizeHint();
@ -1838,7 +1838,7 @@ void QHeaderViewPrivate::_q_sectionsRemoved(const QModelIndex &parent,
{
Q_Q(QHeaderView);
if (parent != root)
return; // we only handle changes in the top level
return; // we only handle changes in the root level
if (qMin(logicalFirst, logicalLast) < 0
|| qMax(logicalLast, logicalFirst) >= sectionCount())
return;