From 5c632708daf87c98649cf5b4f82013d70fe85679 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 7 Mar 2012 23:35:51 +0100 Subject: Fix comments to refer to the root, not the top level. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If0fc8a18973a2fe15197437734f15f3d445d1b6c Reviewed-by: Thorbjørn Lund Martsum Reviewed-by: Stephen Kelly --- src/widgets/itemviews/qheaderview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index dc272b5ee0..d8c53a3033 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -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; -- cgit v1.2.3