Fix comments to refer to the root, not the top level.
authorStephen Kelly <stephen.kelly@kdab.com>
Wed, 7 Mar 2012 22:35:51 +0000 (23:35 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 11:45:07 +0000 (13:45 +0200)
Change-Id: If0fc8a18973a2fe15197437734f15f3d445d1b6c
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qheaderview.cpp

index dc272b5..d8c53a3 100644 (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;